Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Append the timestamp before and after the data in the logfile

by blazar (Canon)
on Dec 22, 2005 at 10:18 UTC ( [id://518510]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Append the timestamp before and after the data in the logfile
in thread Append the timestamp before and after the data in the logfile

No need to spawn a subshell:
{ date; perl test.pl; date; } > test.log
will do. At least in bash, that is...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://518510]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found