Hi,
I’m quite new to Linux and I’m looking for some help with a script I’m working on.
I have setup an FTP server to receive fairly large files (5-10 meg). The script I’m working on takes the files that have been uploaded onto the FTP site and then FTP’s them to another server.
The script is run by the crontab every 2 minutes. My problem is that the script is trying to move files that are still being uploaded onto the FTP site by our users.
How can I set my script so that it only moves files whose size hasn’t changed for at least 10 seconds?
Any help you can offer is appreciated.
PC
I’m quite new to Linux and I’m looking for some help with a script I’m working on.
I have setup an FTP server to receive fairly large files (5-10 meg). The script I’m working on takes the files that have been uploaded onto the FTP site and then FTP’s them to another server.
The script is run by the crontab every 2 minutes. My problem is that the script is trying to move files that are still being uploaded onto the FTP site by our users.
How can I set my script so that it only moves files whose size hasn’t changed for at least 10 seconds?
Any help you can offer is appreciated.
PC