[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cron



> The easiest ... create a text file with your cron jobs in it. FTP it up to
> the server ... telnet in as the user that the job(s) applies to then
change
> to the folder where you ftp'ed the text file & type in
>
> crontab <filename>.txt
>
> I see Dan recommended the manual ... I will agree & recommend it for
setting
> up the text file.
>
> but what is tyhe best way to set up cron jobs?

I like to name the file I use crontab
Thats "crontab" without the quotes

"crontab crontab" will load the contents of that file.  If I edit that
crontab file then I will do a "crontab -r" and then "crontab crontab"

Why you ask?  because I press tab alot to complete things....  try it press
cr and then tab... you should get "crontab" which makes the above command
cr<tab>cr<tab><return>

usage:  crontab [-u user] file
        crontab [-u user] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)

Also see "man crontab"
Always check whats in there before you delete it.

This might help you too..
http://www.zeffie.com/Basics/Crontab.html

Zeffie