in reply to Re: Append the timestamp before and after the data in the logfile
in thread Append the timestamp before and after the data in the logfile
To save some typing, you can group the commands together in a subshell and redirect the subshell's output instead.
( date; perl test.pl; date ) > test.log--k.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Append the timestamp before and after the data in the logfile
by blazar (Canon) on Dec 22, 2005 at 10:18 UTC |
In Section
Seekers of Perl Wisdom