Check folder for specific files than move script
I have a script that checks a folder for zip files than moves them to a different folder. I want to check every 5 maybe 10 seconds and since cron is setup to run at least a 1 minute increment I'm not sure how to do that time check as probably a loop within the script.
One other thing is once the time check is in the script how would a cron job be setup to run this script? Once the script is running cron doesn't need to run it again, is there a feature to check if it's running and if it's not then run it? find /export/xxxshare -name "*.zip" -exec mv {} /export/store \; |
This sounds like a job for incrontab rather than crontab, I use incrontab for lots of things and it works great.
See: http://www.howtoforge.com/triggering...es-with-incron |
|
Decided running a cronjob every minute would be sufficient.
|
All times are GMT -5. The time now is 01:49 AM. |