Add Delay to Auto Processing File

Support for Ubuntu and other Desktop Linux distributions
Post Reply
imperialized
Posts: 14
Joined: 19 Jun 2016, 14:44

Add Delay to Auto Processing File

Post by imperialized »

I use both ruTorrent and deluge on a dedi box. I am having issues at times with the files not being processed on torrent complete, and thanks to RedNoah, I believe it could be because the script is running too quickly upon completion of the data and it hasn't been completely written to the disk.

I've tried using

Code: Select all

sleep 10s 
to get the code to wait 10 seconds before processing, while echoing out the start and end times in a file. Unfortunately, the start and end times are exactly the same meaning that the file did not delay at all.

Is there another way to cause the shell script to wait prior to processing? I am trying to debug what the issue might be, but am having some trouble.

Thanks in advance!

Ediit: This is a Debian linux box
Post Reply