Can it be waiting for you to say yes to the id of the target machine?<div><br></div><div>I remember this as being a problem with ant scripts in the past.<br><br><div class="gmail_quote">On 5 May 2011 16:59, Nathan Friend <span dir="ltr"><<a href="mailto:nathan.friend@gmail.com">nathan.friend@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Afternoon KLUG,<br>
I'm using a PHP script to copy a file from a Windows machine to a Linux machine.<br>
<br>
I found PSCP, a windows version of SCP<br>
(<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a>)<br>
which works perfectly from the Windows CLI.<br>
<br>
Unfortunately when I run it from a PHP script it just hangs at the<br>
PSCP commend. No errors in the Apache log, so I guess it's waiting<br>
for something.<br>
<br>
<?php<br>
exec('c:\apps\pscp -q -i c:\key\akeyfile.ppk c:\source_file.txt<br>
user@linuxbox:/destination/');<br>
?><br>
<br>
I'm using key files to prevent a password prompt and the -q switch to<br>
suppress output.<br>
<br>
Any ideas?<br>
<br>
Cheers,<br>
<br>
Nathan.<br>
<br>
_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</blockquote></div><br></div>