crontab syntax in unix with if statement

December 30, 2010 at 01:10:00
Specs: Windows XP
Can anyone give the syntax of using if condition in CRON.ie if a folder exists then only the CRON shd run.I used the below

* * * * * test -d /tmp/test/ && <script.sh>


See More: crontab syntax in unix with if statement

Report •

#1
December 30, 2010 at 01:11:30
I have used this but this didnt work ou.......

Report •

#2
December 30, 2010 at 04:46:33
You have to give a user, who executes this:
* * * * * root test -d /tmp/test/ && <script.sh>

The original poster should always write the last response !!!
Let us know, if the problem is solved !!!


Report •
Related Solutions


Ask Question