Page 1 of 1

CRON jobs

Posted: Tue Jul 30, 2002 1:01 pm
by cheatboy00
I was wondering where i could get more info on these.... i have the capability on my site but i dont know how to use them.....

Posted: Tue Jul 30, 2002 1:08 pm
by llimllib
man cron
cron help

Just google it, man

Posted: Tue Jul 30, 2002 1:22 pm
by cheatboy00
heh... thanks again

Posted: Tue Sep 03, 2002 7:50 pm
by m3mn0n
is it true crons don't have to have file extensions?

Posted: Tue Sep 03, 2002 9:02 pm
by nielsene
Well in the *nix world extensions tend not to matter. So yes, cron scripts don't need to have any paticular extension. What will matter is that the script is executeable (chmod u+x, or similar) and that the computer can figure out how to run the file. If its a binary then its straightforward, if its a script file the first line of the file will tell the computer what program to use to interpret the file.

This first line is the
#!/bin/sh or #!/usr/bin/perl or #!/usr/bin/php for (cgi version)
of course people commonly give their scripts .sh, .pl or .php extensions anyways, but its not required and the practice is frowned upon by some.

Posted: Wed Sep 04, 2002 1:06 am
by gite_ashish
there are some standard locations also.

as in (red hat) linux:

/etc/cron.daily
/etc/cron.hourly
/etc/cron.monthly
/etc/cron.weekly

as said by nielsene, it should have execute permision and the shbang (#!).

regards,