storing errors from shell_exec command

From: Date: Fri, 09 Aug 2002 20:14:00 +0000
Subject: storing errors from shell_exec command
Groups: php.general 
Request: Send a blank email to php-general+get-111884@lists.php.net to get a copy of this message
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 $output=shell_exec($cmd); $cmd ="$output > /usr/autoserv/errlog"; exec($cmd); -- Best regards, rdkurth mailto:rdkurth@starband.net

« previous php.general (#111884) next »