Need to Delete a Cronjob via SSH

Discussion in 'Site & Server Administration' started by epic1231, Mar 23, 2007.

  1. #1
    I have a cronjob that is still entered in my server, but due to my own lack of knowledge i deleted the domain from my server without removing the cronjob and now i keep getting the emails from my server

    /bin/sh: line 1: /home/userID_Removed/public_html/cgi-bin/script-removed/cron.cgi: No such file or directory
    Code (markup):
    I just need to know how to remove the cronjob via SSH, i logged in as Root to my SSH and then did crontab -l and I see the two cronjobs I want to remove, but can't find the code to do so anywhere via Google.

    There is 3 total that I want to remove but there is about 10 cronjobs setup there so i want to remove those three and make sure the other 7 stay running as they should.

    Any suggestions?

    Thanks in advance,
    Bill
     
    epic1231, Mar 23, 2007 IP
  2. tnd

    tnd Well-Known Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #2
    If cron job has same user then you can run 'crontab -e' to manual edit and remove the line that you want to and save it

    You can specify editor that you want by
    
    export EDITOR=vi
    Code (markup):
    before run crontab -e
     
    tnd, Mar 23, 2007 IP