This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Re: Capturing output > doesn't work From: Ahbaid Gaffoor <ahbaidg@worldnet.att.net> Date: Thu, 27 Jul 2000 18:29:21 -0700 Wes Owen wrote: > I am trying to capture the output of: > > perl -w frank > text.file > Can't open perl script "frank": No such file or directory > less text.file > > and text.file is empty. Instead of "Can't open perl script "frank": No > such file or directory" going to the file, it is outputted to the > screen. Is there any way to capture the output of perl -w? I am doing > this though a bash cgi script, so what prints to the screen doesn't always > show up on the web. > > Thanks for any/all help. Try: script perl -w frank exit vi typescript or perl -w frank 1>output.good 2>output.errors ===