Re: [PHP] howto kill proc stream after X seconds

2005-03-10 Thread Richard Lynch
> $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 yo

[PHP] howto kill proc stream after X seconds

2005-03-10 Thread Michael Caplan
Hi, I am struggling to find a way to kill a proc_open() stream if it remains idle (hangs). Specifically, I am opening an SSH connection up and running a remote command - all from a PHP script run from the shell. Under the rare circumstance that my passwordless authentication fails (ie: it sit