Portal Home > Knowledgebase > Articles Database > cron tabs


cron tabs




Posted by Niklas, 06-11-2009, 08:55 PM
Is it possible to have a cron tab (under unix) check whether FILE1 exists, and if true then execute the first bash/sh script found in FOLDER1? Do you need a separate script to perform this?

Posted by AquariusStorage, 06-11-2009, 09:00 PM
Last time I checked, a crontab just takes over the work of someone going to a link in a browser say once every 5 minutes all day long to run a script. I think you would need to write the script to where if FILE1 exists, then execute the first bash/sh script found in FOLDER1. A crontab would simply accomplish running that script say every 5 minutes.

Posted by Niklas, 06-11-2009, 09:02 PM
That's what I thought, thanks.

Posted by RavC, 06-11-2009, 09:15 PM
Yep AquariusADMIN is right, make a cron entry to run a script. The script you want to write is pretty simple and may look at bit like this:



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Netfirms down? (Views: 657)
Mysql error (Views: 612)
SMTP error ..... (Views: 597)