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-namecrontab —u user -ecrontab —u user -l crontab —u user -r
Run on Boot
- open crontab crontab -e
- add this line @reboot