Cron Job

Cron Job

Here are some information I have gathered required for cron job. Hope this will help you. 🙂

Cron Job List

crontab -l

Open cron job editor

// Open in Vim
crontab -e

// Open in nano
VISUAL=nano crontab -e

Disable mail alerts

// Add this at top of job file.

Adding job

Click here to find various Cron Examples required to set for your jobs.

* * * * * cd location_to_your_project && your_command_goes_here >> /dev/null 2>&1

Change visual editor

// If nano
export VISUAL=nano;

// If vim
export VISUAL=vim;

Leave a Reply