How to copy file from server to server
I am trying to write a script that will cycle through a list of other servers and copy files from those remote servers to the one the script is on. I've tried the script below but it fails, stating the remote file doesn't exist, even though it does. I've never tried these functions before so I don't know if I am using them incorrectly or doing something else wrong. Does anyone see a problem with the code or have a suggestion as to a better way to do this?
This is just a follow-up in case someone else runs into this. It turns out you have to perform a chdir on the remote server before this will work.
|All times are GMT. The time now is 05:01 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0