On Tue, Apr 20, 2010 at 1:28 PM, Weizhong Dai <[email protected]> wrote: > Hi all, > In my script, I have a system call, and redirect the stderr to a file. > # > # open STDERR, ">$workpath\\error_log.txt"; > # system "..."; > # > but I only want the ERROR messages to be logged in the file. Is there
try this: system "command arguments 2>error.txt"; -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
