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 !

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to