Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: command to edit/remove cron job (crontab) on Linux server  (Read 88843 times)

0 Members and 2 Guests are viewing this topic.

Offline Kailash

  • Administrator
  • Web Hosting Master
  • *****
  • Posts: 601
  • iTrader: +153/-0
    • View Profile
command to edit/remove cron job (crontab) on Linux server
« on: July 29, 2007, 12:49:12 PM »
crontab command is used to edit/remove the current cron job on the server. Below are the few options of crontab command:

crontab -l
  - Displays the current cron jobs.
crontab -e - To edit the cron jobs.
crontab -r  - To remove cron jobs.

If you wish to edit it for particular user, you can use the following:

crontab [-u user] [-l | -r | -e] [-i]

Regards,

Kailash
« Last Edit: April 02, 2015, 11:04:34 PM by Kailash »

VPS Hosting - AccuWebHosting

Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #1 on: July 21, 2009, 10:37:14 AM »
Recently, I needed to change Backup time on my cPanel server (cpbackup) and wasn't aware about to change cron time. Kailash, thanks for this post which helped me to change the backup time.

Thanks,

Digitalpoint

Offline kvchosting

  • New Member
  • *
  • Posts: 17
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #2 on: November 25, 2009, 06:57:35 PM »
If you are doing it for a user as root

For edit and to list the cronjobs below are the commands

crontab -u <username> -e

crontab -u < username> -l


Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #3 on: November 27, 2009, 10:42:14 AM »
If you are doing it for a user as root

For edit and to list the cronjobs below are the commands

crontab -u <username> -e

crontab -u < username> -l

Hey,

Thanks for additional information to modify cron for particular user.

Digitalpoint

Offline kvchosting

  • New Member
  • *
  • Posts: 17
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #4 on: December 01, 2009, 10:56:13 PM »
No problem at all.

Glad to be part of technical discussion.

Offline ptduran

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #5 on: January 27, 2010, 11:33:36 PM »
Thanks for the information.

Offline izumi777

  • New Member
  • *
  • Posts: 15
  • iTrader: +0/-0
    • View Profile
    • Web Hosting
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #6 on: March 14, 2010, 05:26:30 PM »
Thanks for the tutorial.  ;)

Offline webhosting.am

  • New Member
  • *
  • Posts: 16
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #7 on: July 21, 2010, 11:34:10 AM »
great forum, I find so much interesting in it. ::)

Divi WordPress Theme
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2651 Views
Last post October 26, 2007, 03:12:14 PM
by Tech
2 Replies
1360 Views
Last post March 20, 2014, 02:52:55 PM
by Rick
5 Replies
1791 Views
Last post October 06, 2014, 02:44:24 PM
by Hall
3 Replies
1205 Views
Last post January 28, 2016, 12:54:19 PM
by hmb-willem
0 Replies
100 Views
Last post August 14, 2017, 05:20:03 PM
by WHUK