jonlondon12
asked on
Remote Script execution from web server.
I need to be able to execute a shell script remotely on a unix box from my web server (Windows).
I am currently using WINRSH32, which works but this does not give me any useful return values if the script fails to run.
Does anyone know of a PHP script that handles remote execution of shell scripts on unix boxes?
Thanks
I am currently using WINRSH32, which works but this does not give me any useful return values if the script fails to run.
Does anyone know of a PHP script that handles remote execution of shell scripts on unix boxes?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry must be php4
Ahhh,
have you considered running apache or similar on the linux box and writing a php interface for the shell script that your windows box could call?
have you considered running apache or similar on the linux box and writing a php interface for the shell script that your windows box could call?
ASKER
nah not the simple. this is a corporate architecture, therefore installing and configuring a web server is not that simple.
There must be another tool like WINRSH32 that gives useful error messages?
There must be another tool like WINRSH32 that gives useful error messages?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.phpclasses.org/browse/package/2477.html
This class will implement a PHP ssh client which you can then use to create an SSH session with your linux box and call your script.