"Michael Sims" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 28 Dec 2002 02:55:44 +0530, you wrote: <--sniped -->
#! /usr/bin/php -q <? $r = `rm no_file 2>&1`; echo "the value in r is $r"; ?> If you need more info on the "2>&1" part, consult the Advanced Bash Scripting Guide here: http://www.digitaltoad.net/docs/guide/advshell/io-redirection.html Thx Michael, I tested what you prescribed and it works like a charm. Thanks for the link to ABSG, a very useful Guide indeed. Im running a linux system so i have no problem, but how would one redirect stderr to stdout on a Win machine, if it is possible at all <g> Have a good day gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php