Schedule on file creation
Hello All, I am new to linux and i am looking to run a script i have created when a certain file is created. I was going to use the crontab to run my script every minute and use an if statement in the script to determine wether the file exists and then run the procedure if it does. This seems a bit overkill tho and i was wondering if there is a better way to do this? Thanks in advance.
Phil |
"i am looking to run a script i have created when a certain file is created. I was going to use the crontab to run my script every minute and use an if statement in the script to determine wether the file exists and then run the procedure if it does. This seems a bit overkill tho and i was wondering if there is a better way to do this?"
Why can't the program or script which creates the file also run the script that you plan to put in crontab? ------------------------- Steve Stites |
Sorry i should have explained my situation a little better, the program that creates the file will be running on a windows server, using a share the programs creates the file to trigger the running of the script.
|
All times are GMT -5. The time now is 08:01 PM. |