Adding and Removing entries in Crontab

IDevice Icon Adding and Removing Entries in Crontab

Adding Entries in Crontab

 

There are two options to enter entry inot crontab. There are:

1. Using the crontab command with – e option

2. Loading preconfiured table using cron command

 

Using the crontab command with -e option

TYPE: $ crontab –e
The default text editor will be appeared and you can add , edit your corntab list

Loading preentered table using cron command

1. create and save a text file with your crontab entries.

2. You can load your list into crontab by using the following command:

$ crontab <tablepath and yourtable Name>

 

 

Viewing Entries in Crontab

You can view your current crontab list by specifying the -l option

TYPE: $ crontab -l

Issuing this command will print out a list of all your current jobs in the crontab list

Removing Entries in Crontab

 

The -r option removes your current crontab file.

TYPE: $ crontab -r

Issuing this command will empty the contents of the current user's crontab file