The reason you had this problem is because % is the newline delimiter in cron syntax.
Some other general cron tips:
Check your /var/log/syslog when cron is having issues. You can usually find some helpful message there. Just grep through it looking for anything with "cron" in it. Case-insensitive grep probably works best.
Make sure the cron environment has an appropriate environment setup to do what it needs to accomplish. cron runs in a really basic environment that is different from your normal working environment.
Even if Arch "constantly breaks", it's not really much of an issue. If someone schedules disk snapshots before each 'update', rolling back is trivial.
If someone doesn't know how to automate disk snapshots, they really shouldn't be using a rolling-release system in the first place.
This needs to be higher up.
Also, OP has probably learned a lot from the process. Even a failure is good as long as it was a learning experience.
Try launching them from the terminal and redirect stdout and stderr to a file and see what the difference is.
Check logs to diagnose what the issue could be.
Just being silly. If systemd is the right tool for the job, it's the right tool for the job.
https://i0.kym-cdn.com/photos/images/original/000/925/966/8d2.gif
The reason you had this problem is because % is the newline delimiter in cron syntax.
Some other general cron tips:
Check your /var/log/syslog when cron is having issues. You can usually find some helpful message there. Just grep through it looking for anything with "cron" in it. Case-insensitive grep probably works best.
Make sure the cron environment has an appropriate environment setup to do what it needs to accomplish. cron runs in a really basic environment that is different from your normal working environment.
Yep! It's one of vim's standard 'chords'. You're welcome! Glad it was helpful. :)
Ctrl+[ is an ergonomic way of typing Esc. Should leave you open to use Caps for something else. :)
End of this list.
Back to top