I want to run a command in crontab that sends a popup notification at 1:00, 1:05, 1:10, and 1:15 AM every day.
What I did:
- Ran crontab -e in terminal
- Pasted
Quote:
*/5 1 * * * /usr/bin/notify-send 'Title of the message' 'Text of the message' >/dev/null 2>&1
|
- Exited the crontab editor
What went wrong:
- It didn't work
Additional info:
- If I run crontab -l, it shows my command as pasted above, but doesn't run it
- The editor opens the crontab file as a temporary one (not sure about this, but definitely in the /tmp folder, not /home or /usr)
- Running Mint 18.1
What I need to know:
- What file do I need to write the changes to? I tried /etc/crontab (had to run the editor as sudo to do so), but that didn't work. I am told that that is the system crontab file (I don't know the difference).
- Is the script correct?
- What is the difference between user and system crontab?
- What do I need to do in general?
Thanks for the help