One of the ways to do these things are :
i) Add the script as a cron job in the crontab file. This will activate the script after a fixed amount of time (as entered by user).
ii)Along with the script, maintain a data file.
iii) The script logic:
1) Each time script is run, it will check the directory ( with ll (longlisting)for example)
2) For each such file ( use "for"
{
Get the size of file by using "cut -f"
If file_name present in datafile
compare the size obtained now and that in data file
If ( size are same ) // denotes that transfer is complete
do processing
move or delete the file
Else
Make an entry for the file and its size in the data file. //New file
}
Let me know, if you want me to write the actual script.
CHeers
byk