Results 1 to 4 of 4

Hybrid View

  1. #1

    Deleting Cronjob

    hey guys, I need to delete a cron via ssh.

    for some reason I cannot edit the file via crontab -e and pico...

    Is there a commandline to delete it? I need to create a new cronjob

  2. #2
    Join Date
    Jun 2003
    Posts
    976
    Code:
    crontab -u user -r
    will delete users crontab (all jobs)

    why cant you edit the crontab? whats the problem/error?

  3. #3
    Join Date
    Apr 2005
    Location
    Russia/ Tomsk
    Posts
    7
    # save old crontab to file
    crontab -l user > /root/crontab
    # edit it
    pico /root/crontab
    # update current current cron jobs
    crontab -u user /root/crontab

  4. #4
    Join Date
    Nov 2004
    Location
    India
    Posts
    1,104
    If you have root access you can edit and remove the cron jobs for the user from :

    /var/spool/cron/<user>
    AssistanZ - Beyond Boundaries...
    Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
    Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •