You are here: Re: run remote shell script « PHP « IT news, forums, messages
Re: run remote shell script

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация