Results 1 to 2 of 2
Hi friends,
i want to use one script everyday at noon.
i think its code will be like this
0 12 * * *
and how should i write the ...
- 01-19-2010 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 28
crontab
Hi friends,
i want to use one script everyday at noon.
i think its code will be like this
0 12 * * *
and how should i write the script
like this?
0 12 * * * ./script.sh
or should i define it's path?
- 01-19-2010 #2
You are correct about the scheduling line.
As for the command itself, remember that the commands in crontab may not be executed by the user who wrote the crontab, and therefore you should be as specific as possible. Write the full path to the script (so if it's /home/user/bin/scripts, write all of that out). This way, no matter what the executing user's $PATH is, the script will still be run.DISTRO=Arch
Registered Linux User #388732


Reply With Quote