Link to home
Start Free TrialLog in
Avatar of jonlondon12
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
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jentulman
jentulman

I don;t know how to execute it and only have it return the errorlevel but this may help,

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.
Avatar of jonlondon12

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?
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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial