FTP Scripting

 
Joe Milici
Advisor

FTP Scripting

I use the mget command to retrieve files that art pushed to me by another server. When I am finished retrieving I use the mdel command but sometimes a new file was sent and I am deleting it during the process causing me to miss this file for processing.  What syntax can I use to add the files I am receiving from MGET into a .txt file so I can use that as input for my delete command?

 

 

2 REPLIES 2
Jimmy Vance
Honored Contributor

Re: FTP Scripting

Have you given any thought to using rsync instead of ftp? You can have rsync delete the files as they are successfully transferred

No support by private messages. Please ask the forum! 
Steven Schweda
Honored Contributor

Re: FTP Scripting