On Saturday 10 August 2002 04:14, [EMAIL PROTECTED] wrote:
> I need to redirect the output from the shell_exec return variable to a
> file. What I have below is not working. What I need to get from the
> shell_exec is ant errors that happen and then I what to store those
> errors in a error file
> $cmd ="`$output > /usr/autoserv/errlog`";
Not sure whether it'll make any difference, but you do NOT need the backticks.
Why not do it in a single step?
shell_exec("command_to_execute > /usr/autoserv/errlog");
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
A fool and his money are soon popular.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php