Re: howto kill proc stream after X seconds
| From: | Richard Lynch | Date: | Thu, 10 Mar 2005 20:23:54 +0000 |
| Subject: | Re: howto kill proc stream after X seconds | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210464@lists.php.net to get a copy of this message | ||
> $process = proc_open(''ssh somehost someremotecommand';', $spec, $pipes);
If you have any control at all over that other server, just set up a
password-protected web page *THERE* to run the process (known technology)
and then use cURL to access it (known technology) and call it done.
Beating your head against PHP -> exec -> SSH -> remotecommand will just
get you a headache, almost for sure.
You may want to look into RPC or even SOAP as well, if it's a whole mess
of commands.
--
Like Music?
http://l-i-e.com/artists.htm