cancel
Showing results for 
Search instead for 
Did you mean: 

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
Jimmy Vance
HPE Pro

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!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Steven Schweda
Honored Contributor

Re: FTP Scripting