Divi WordPress Theme

command to edit/remove cron job (crontab) on Linux server

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

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 661
  • 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
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. ::)
Shopify Divi WordPress Theme

How to find if a file contains a given string using dos command line

Started by ChrisBoard Windows

Replies: 1
Views: 2099
Last post October 30, 2019, 05:31:39 PM
by Kailash
Close Windows command prompt after starting program using batch file

Started by ChrisBoard Windows

Replies: 1
Views: 1516
Last post October 30, 2019, 05:16:48 PM
by Kailash
restart Apache through command line

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 5579
Last post August 12, 2007, 06:30:11 PM
by Kailash
Critical 0-day Remote Command Execution Vulnerability in Joomla

Started by KailashBoard Vulnerabilities

Replies: 0
Views: 2927
Last post December 15, 2015, 03:35:30 PM
by Kailash
Check MySQL service uptime through command line

Started by KailashBoard How Tos

Replies: 2
Views: 21544
Last post November 22, 2011, 10:03:24 PM
by Mrtu92