SAMPLE CRON JOB
*/1 * * * * (open -a Firefox ‘http://www.youtube.com/’)

opens firefox every minute

COMMANDS

crontab file-name

  • appends the specified cron job in file-name to the cron job list

crontab -e

  • edit/add more cron jobs to the list

crontab -l

  • displays all the currently running cron jobs for current user ‘whoami’

crontab -r

  • removes all the cron jobs from current user’s list

you may also work on other user’s crontabs with these commands (replace user with actual user)
crontab —u user file-name
crontab —u user -e
crontab —u user -l
crontab —u user -r

Run on Boot

  1. open crontab crontab -e
  2. add this line @reboot