SSH Connection
Posted: Wed Dec 01, 2010 7:27 pm
Hi,
I am try to get my PHP code to execute a shell script. Usually this is an easy task with exec or the like, but I have run into a headwall with my current script. The PHP calls a script which will upload a file and transfer it to another server. My thought is that there is a file permission issue here. Does anyone have an idea of where I should be searching.
shell is "rsh -l [username] [server ip] "mkdir testDir"
I am call it from the php
system("./TestScript")
I am try to get my PHP code to execute a shell script. Usually this is an easy task with exec or the like, but I have run into a headwall with my current script. The PHP calls a script which will upload a file and transfer it to another server. My thought is that there is a file permission issue here. Does anyone have an idea of where I should be searching.
shell is "rsh -l [username] [server ip] "mkdir testDir"
I am call it from the php
system("./TestScript")