[PHP] pecl-ssh2 and remote command execution

2007-11-12 Thread Radek Hladik
Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh directly from PHP.

Re: [PHP] pecl-ssh2 and remote command execution

2007-11-12 Thread Chris
Radek Hladik wrote: Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh

Re: [PHP] pecl-ssh2 and remote command execution

2007-11-12 Thread Radek Hladik
Chris napsal(a): Radek Hladik wrote: Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the