Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP help needed! URGENT!

Status
Not open for further replies.

ZK

MIS
Oct 2, 2000
27
GB
Hi guys,

I need help ASAP. I need to write an FTP script that logs on to a remote machine, and copies (or moves) files from one folder on that remote machine to another folder (on the same remote machine). It needs to copy multiple files at the same time.

Do any of your know the command/syntax do do the job?

(Our ftp server is on Linux)

Thanks
ZK

 
Would it not be easier to start a remote shell which does this job?

hnd
hasso55@yahoo.com

 
I agree...remote shell is the way to go, not FTP Says the Manager to the person that invented the modem: "Tell me again why you need two prototypes?!?"
 
I actually just wrote something like that for my intranet site... tell me if this solution would work for you and I can send you code snippets.

The web server is apache/php4 on linux, and the destination folders are on an NT4 server with IIS. The user logs into the intranet site, and the page shows a little listing of files in the NT box's "Pending" folder. They check off which items to approve, and when they submit the form it (the web server) ftp's to the NT box, moves the files, and shows an updated list of files in both the "Pending" and "Approved" folders.

If a web-based solution is an option for you I can post my work up here. The downside to this is it is always interactive (i.e., can't be a cron job), but this is offset by making it user-friendly and you can make this a responsibility of coworkers...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top