[Klug-general] PSCP from Windows to Linux via PHP
Karl Buckland
buckland.karl at googlemail.com
Thu May 5 20:16:54 UTC 2011
Hi Nathan,
If it needs to happen instantly and the destination machine is running
a web server, then you could POST the file, just like a file upload
from a form.
Alternatively if you can wait then you can try Rsync. Windows has
DeltaCopy (i think it's called) which is an Rsync server. And you can
install cygwin and access the rsync client that way too.
Karl
On 5 May 2011 21:02, Nathan Friend <nathan.friend at gmail.com> wrote:
> Hi Karl and David,
> Adding the escape characters allows the script to run to the end but
> appears not to a actually run the exec command. Maybe I need to look
> in the windows event log to see if there are any clues.
>
> I get the last line of output if I do echo exec('ls'); So I thought
> my exec('command'); was OK.
>
> I've already said yes to the ID when I ran it from cmd. Good
> suggestion though it's caught me out in the past.
>
> Maybe this isn’t the best way to script a file transfer between
> win/lin servers, how do other people do it? It can't be an unusual
> task.
>
> Cheers,
>
> Nathan.
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
More information about the Kent
mailing list