Search This Blog

Tuesday 15 May 2012

Manage Cron Job using Putty


  1. Login to SSH via Putty
  2. Type crontab –e
  3. Use “I” for insert
  4. Make the necessary changes
  5. Press Escape
  6. Type :q (to quit without any changes)
  7. Type  :wq (to save changes and quit)
Disable CRON error emails: Add the following at the top of the Cron file
MAILTO=""

For more info Click Here

See the list of CRON process IDs:  pgrep crond

Cron Status: service crond status
Stop the Cron: /etc/init.d/crond stop
Start the Cron: /etc/init.d/crond start
Restart the Cron: /etc/init.d/crond restart 

Kill the Process by PID: kill PID

Get PID by Process name: pidof lighttpd

 
 

No comments:

Post a Comment