Hi guys !
I want to execute a program on another server from a php script.
I 'am currently using the exec command. The command is :
ssh -fnl oracle myhost \"/home/oracle/myprog.sh &\" >/dev/null 2>/dev/null
Of course, this prog takes a long time and must run in background but this works fine. The only problem I have is this program is executed 2 times on the remote server.
When I lanch it from a command line it works fine and I checked my php code, I have no loop and debug messges such as "print" appear only one time.
Any idea ?