[nSLUG] April Tech Talk

Robin Murray nibor.yarrum at gmail.com
Thu Apr 23 01:21:40 ADT 2015


Or the (imo) more elegant https://metacpan.org/pod/Capture::Tiny


--
Robin Murray
Hatchet Lake,
Nova Scotia
Canada


On Wed, Apr 22, 2015 at 10:26 AM, Vlado Keselj <vlado at dnlp.ca> wrote:
>
> Yes, I would like to add thumbs up for tee as well.  I like to following
> Perl idiom in some situations:
>
>  open(STDOUT, "|tee logfile.txt") or die "Can't redirect stdout";
>  open(STDERR, ">&STDOUT") or die "Can't dup stdout";
>
> and from there on, just use normal print, etc., to write to the standard
> output, while everything is recorded into the logfile.
>
>
> On Tue, 21 Apr 2015, Herb Theriault wrote:
>
>> Tee is a lot of fun. I've often used it while running tcpdump, to keep an eye on it, while it goes to a file.
>>
>> On April 17, 2015 11:02:21 PM ADT, Baha Baydar <bbaydar at gmail.com> wrote:
>>       You can also use "tee" ( http://en.wikipedia.org/wiki/Tee_(command) ) and really blow your mind. :-)
>>
>> On Fri, Apr 17, 2015 at 10:52 PM, Mike Spencer <mspencer at tallships.ca> wrote:
>>
>>       Oliver Doepner <odoepner at gmail.com> wrote:
>>
>>       > Regarding tail -f:
>>       >
>>       > I find the "follow" mode of less even better:
>>       > http://blog.libinpan.com/2009/07/less-is-better-than-tail/
>>
>>       Cool.  Noted for future reference.
>>
>>       - Mike
>>
>>       --
>>       Michael Spencer                  Nova Scotia, Canada       .~.
>>                                                                  /V\
>>       mspencer at tallships.ca                                     /( )\
>>       http://home.tallships.ca/mspencer/                        ^^-^^
>>       _______________________________________________
>>       nSLUG mailing list
>>       nSLUG at nslug.ns.ca
>>       http://nslug.ns.ca/mailman/listinfo/nslug
>>
>>
>>
>>
>> --
>> Baha Baydar                      http://www.hyperion.org
>> bbaydar at gmail.com           http://www.hal-con.com
>>
>> _________________________________________________________________________________________________________________
>> nSLUG mailing list
>> nSLUG at nslug.ns.ca
>> http://nslug.ns.ca/mailman/listinfo/nslug
>>
>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/mailman/listinfo/nslug
>


More information about the nSLUG mailing list