error when running commands via exec() in CLI-mode

From: Date: Fri, 04 Jun 2004 11:28:49 +0000
Subject: error when running commands via exec() in CLI-mode
Groups: php.general 
Request: Send a blank email to php-general+get-187611@lists.php.net to get a copy of this message
I do this: <?php $cmd = 'rsync -Razv file.php user@host::zone'; @exec($cms, $log, $ret); ?> when an rsync error occure, if I run this script by a web server I get no output (errors go correctly into $log and $ret), while running the script in a console environment I get errors in the standard output even if I suppress them with "@". anyone knows a workaround? is this a bug? bye, alberto. -- "Imagination is more important than knowledge"

« previous php.general (#187611) next »