Posted by Matthew Weier O'Phinney on 08/17/05 17:40
* Roger Thomas <sniper@home.net.my>:
> My PHP script is in svrA. How do I run a shell script in svrB?
> svrB does not have PHP and Apache :(
> Is this at all possible? Please advise.
Use ssh. You will have to setup remote key authentication from svrA to
svrB (so that a password will not be needed), and then in your script
you would call:
system('ssh svrB /path/to/scriptToRun');
--
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/
[Back to original message]
|