i'd like to redirect both STDOUT and STDERR to the log file and console, but i'm having trouble doing so. can someone help?open LOG, ">> $logfile"; open STDERR, ">&LOG"; select LOG; $| = 1; select STDERR; $| = 1; select STDOUT;
In reply to stdout/err redirection by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |