Exec submits prog 2 times !!!

From: Date: Fri, 29 Aug 2003 14:44:13 +0000
Subject: Exec submits prog 2 times !!!
Groups: php.general 
Request: Send a blank email to php-general+get-161138@lists.php.net to get a copy of this message
Hi all, I need to execute a command that will remotely exec another one on another server. Here is the code (really simple) : print "Launching ssh<br>"; flush(); $pgm = "ssh -fnl oracle diamond \"/home/oracle/myprog.sh &\" >/dev/null 2>/dev/null"; exec ($pgm, $output, $res); The ssh ... goes well when launched under shell and everything works fine BUT when launched through the browser, I have only one message (Launching ssh) but the prog executes 2 times. Any idea will be aapriciated. Thanks to all !

« previous php.general (#161138) next »