timestamp in STDERR output
IvorW
combobulus at xemaps.com
Thu Jun 29 15:25:29 BST 2006
> -----Original Message-----
> From: Thomas Busch [mailto:tbusch at cpan.org]
> Sent: 29 June 2006 15:03
> To: London.pm Perl M[ou]ngers
> Subject: timestamp in STDERR output
>
>
> * Replies will be sent through Spamex to london.pm at london.pm.org
> * For additional info click -> http://www.spamex.com/i/?v=3253030
>
> Hi all,
>
> is it possible to redefine STDERR in such a way that
> you get a timestamp at the beginning of each line ?
It's a fairly simple filter:
bash% myprog 2| perl -n -e 'print scalar(localtime),' ',$_'
More information about the london.pm
mailing list