... or If I also want to trap STDERR I do ...perl -e 'print "Hello\n";' | tee logfile
... but then again does logging need to be complicated?perl -e 'print "Hello\n;' >& logfile
In reply to Re: printing to STDOUT and a Logfile
by rbc
in thread printing to STDOUT and a Logfile
by oroburos
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |