Skip to content

Instantly share code, notes, and snippets.

@rajankur
Last active September 13, 2017 17:22
Show Gist options
  • Save rajankur/619ea16d809480b8c1e07afab326bfc6 to your computer and use it in GitHub Desktop.
Save rajankur/619ea16d809480b8c1e07afab326bfc6 to your computer and use it in GitHub Desktop.
Setting Up Cron Jobs in Linux
  1. Login to your Server Instance

  2. Run the Command

crontab -e
  1. Select the desired editor to start editing your CRON file.

  2. Add your desired paths/function which you want to schedule. For example

0 10 * * * php  /var/www/public_html/api/src/cronjob/notification.php
  1. Save your file
  2. To check if your CRON has saved successfully, use
crontab -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment