A simple question about Crontab, does it matter where I save crontab files? (creating the time-dependent jobs using crontab -e) or can they be read from any directory?
I ask because it seemed that my crontab file got deleted because when I used the crontab -l it didn’t return anything. However, I think that is because I saved it as a temporary file: Creating more permanent crontab files
Normally, you use
crontabto create the file, and it stores it in the correct place for your machine.Then you use
crontab -lto list it.Where I keep my original is immaterial (but it is under source control in
$HOME/etcas it happens). The system has its own copy of the file where it needs it.If you try placing the files manually, you will get bitten. It might work, but then again, it might not (and it might change in the future). I wouldn’t play the risky game of using other than the kosher command to store crontab files for use by
crontab.