On Tue, Apr 20, 2010 at 1:28 PM, Weizhong Dai <weizhong....@gmail.com> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/