[nycphp-talk] Running backtick commands and responding to stdout/in
Ben Sgro (sk)
skyline at publicmine.com
Mon Oct 9 21:54:06 EDT 2006
Hey all,
I am attempting to run ssh (w/out the ssh2 module) by backticking commands
from the command line.
$result = `ssh -l $userStr $hostStr`;
This line causes the script to display the enter password and php seems to
let it go right to stdin/console.
Is there any way for php to catch this (since I know its comming) and enter
the password?
Or must I install the ssh2 module and call ssh2_connect( )?
Thanks!
- Ben
More information about the talk
mailing list