• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 836
  • Last Modified:

Removing crontab entry

If in an environment there is two crontab entries, if i need to remove both i use crontab -r, on the other if i want to remove the second one, what command should i use to remove the second entry from cron table.

help/ideas appreciated.

--begin
0
begin
Asked:
begin
1 Solution
 
expert99121199Commented:
Use:

crontab -l > somefile

Then edit somefile and remove or add any lines you wish

When you are finished editing, type:

crontab somefile

To activate the new crontab.  Some unixes allow

crontab -e

to edit a crontab file.  Use

man crontab

to see what options are available.
0
 
beginAuthor Commented:
i need to do this via crontab options, if any, i dont' want to do this manually.
--begin
0
 
expert99121199Commented:
crontab -e is the closest you will come.  Crontab files are simple text files, completely unstructured.  Look for a third parts utility of you wish to have a GUI, for example.
0
 
rameshg21Commented:
thanks
--begin
0
 
ozoCommented:
crontab -l | head -1 | crontab
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now