Well I realize that talking about Linux text editors verges on a religious debate between warring factions who have hated each other for centuries. So - for those of you out there who are vi fans let me just say - I don't understand you, but I still respect you :)

For people who want to use an editor that doesn't quite require a PhD to install a few basic Crontab's here is a quick and dirty on how to change the editor to nano. I close with a reminder of Crontab's format incase you're using Fedora and it's not provided in the default file as notes.

changing the editor is simply a matter of placing your favorite editor in the EDITOR environment variable for your shell.

For me that was a matter of editing .bashrc -- Edit .bashrc and place at the bottom:

CODE:
    
export EDITOR=nano
    

logout and log back in. Done. Editor changed.

Next a quick and dirty reminder on the format for crontab

CODE:
    
crontab -e 
    

this is the command to install a new crontab

CODE:
    
*     *     *   *    *        command to be executed
-     -     -   -    -
|     |     |   |    |
|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
|     |     |   +------- month (1 - 12)
|     |     +--------- day of        month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
    

There's the format. * means all. so an * in the 'day of the week' field means execute all days of the week. Also you can put multiple numbers in each field by joining them with a comma.

Cheers!

Tommy

Navigate

Well I realize that talking about Linux text editors verges on a religious debate between warring factions who have hated each other for centuries. So - for those of you out there who are vi fans let me just say - I don't understand you, but I still respect you :)

For people who want to use an editor that doesn't quite require a PhD to install a few basic Crontab's here is a quick and dirty on how to change the editor to nano. I close with a reminder of Crontab's format incase you're using Fedora and it's not provided in the default file as notes.

changing the editor is simply a matter of placing your favorite editor in the EDITOR environment variable for your shell.

For me that was a matter of editing .bashrc -- Edit .bashrc and place at the bottom:

CODE:
    
export EDITOR=nano
    

logout and log back in. Done. Editor changed.

Next a quick and dirty reminder on the format for crontab

CODE:
    
crontab -e 
    

this is the command to install a new crontab

CODE:
    
*     *     *   *    *        command to be executed
-     -     -   -    -
|     |     |   |    |
|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
|     |     |   +------- month (1 - 12)
|     |     +--------- day of        month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
    

There's the format. * means all. so an * in the 'day of the week' field means execute all days of the week. Also you can put multiple numbers in each field by joining them with a comma.

Cheers!

Tommy