in reply to Re^3: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file
in thread Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file

OK, sorry about the code tags thing. I just tried it for the output of the strace (I can't edit the posts I made as Anynymous). So the code using
print "STDXXX: " , scalar <FH>
is straight from the recipe in the Perl Cookbook! Anyway, how do I use sysread instead of scalar <FH> ? As far as left hanging, I mean the program simply stops executing and the rest of the STDERR output is sort of left hanging in the ether, I guess, never to be outputted.
  • Comment on Re^4: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file
  • Download Code

Replies are listed 'Best First'.
Re^5: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file
by ikegami (Patriarch) on Apr 18, 2006 at 19:41 UTC