is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user...
Any help is appreciated...
migrated from stackoverflow.com Feb 18 '12 at 3:30
This question came from our site for professional and enthusiast programmers.
It's generally a good idea to maintain your crontab in a separate file anyway, and install it with
You could have multiple crontab files, and install them all with
You'll need root access to install files in that directory.
I'm not convinced that circumventing the normal crontab mechanism like this is a good idea, but it should work.
(This assumes the "Vixie Cron" implementation, which is probably what your system uses.)
NOTE: You might be tempted to try
but a quick experiment shows that all file names but the first are silently ignored. The man page says that a single file name is accepted, but doesn't say what happens if multiple file names are provided.
Why would you do that? You could use multiple lines in crontab - I think that would do the job too.
There are also the directories you could probably use: