On Tue, Apr 20, 2010 at 1:28 PM, Weizhong Dai <weizhong.dai@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/Thread Previous | Thread Next