I have a customer that upload files through FTP, I made a script that basically monitor the ftp folder and move the file on a production machine.
How can I check if the file has been completely transferred from the customer through ftp before start my scp
command in order to avoid to transfer partial files?
Bash script: Monitor hotfolder and partial files
bashftpscripting
Related Topic
- Ftp – Automatically run a script on an uploaded FTP file
- IIS FTP error: 426 Connection closed; transfer aborted
- Ftp – monitor a folder and send files via ftp to clients
- Ubuntu – Sync folder from Windows server to Ubuntu server through FTP
- Linux – Upload files from vsftpd ftp client in /tmp and once they are uploaded, move them to original folder
- How to open sftp connection and execute sftp commands in shell script
Best Answer
If your OS supports it you can take a look at incrond. The events that can be monitored are defined in the incrontab Perhaps the event your looking for is
or in combination with
Note that