Re: exec, system , backtick

From: Date: Sat, 28 Dec 2002 08:00:49 +0000
Subject: Re: exec, system , backtick
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-129490@lists.php.net to get a copy of this message
"Michael Sims" <mhsims@midsouth.rr.com> wrote in message news:v41q0vkvdfblhc0b3u82c7ftd4jegq8glq@4ax.com... 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.

« previous php.general (#129490) next »