Re: exec returns no output?
| From: | Ray Hauge | Date: | Sat, 30 Sep 2006 14:26:06 +0000 |
| Subject: | Re: exec returns no output? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242424@lists.php.net to get a copy of this message | ||
On Saturday 30 September 2006 7:22 am, Nick Wilson wrote:
> hi all,
>
> i've searched and racked my brains, checked config files and all sorts
> but cannot work out why the following command would give me an empty
> array (and certainly not actually perform the requested command...)
>
> exec('scp -v -i /id_dsa file.txt user@server.com:/target/dir/', $argh);
> print_r($argh);
>
> I can only surmise there is some setting todo with ssh/scp that im
> unaware of?
>
> any ideas welcomed, thanks!
> --
> Nick Wilson
> http://performancing.com/user/1
Do you use generated keys without a password for logging in? Otherwise exec()
is just going to sit there while the scp command waits for a password.
--
Ray Hauge
Application Development Lead
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099