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...
  • Comment on Re^3: Append the timestamp before and after the data in the logfile
  • Download Code