LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nothing in /usr/spool/cron/crontabs (https://www.linuxquestions.org/questions/slackware-14/nothing-in-usr-spool-cron-crontabs-330253/)

Furlinastis 06-04-2005 09:03 AM

nothing in /usr/spool/cron/crontabs
 
Somehow while editing my crontabs directory, both of them are now gone. There used to be two files, a file with my username on it and a file named root. I'm pretty sure I need these files there. So if anyone has the contents of the default crontab contents I would appreciate them posting it.

acid_kewpie 06-04-2005 09:47 AM

there is no default entry. just create whatever you want. using the crontab command. Also the files would not be in /usr/... but /var/...

Furlinastis 06-04-2005 09:51 AM

hm ... cause I did cat root and there was commands saying to run cron jobs in cron.daily etc

I just checked in /var... but there's nothing in that folder either

acid_kewpie 06-04-2005 12:49 PM

you have no user crontabs then... not a problem at all.

Genesee 06-04-2005 10:08 PM

the default root crontab looks like this:

Quote:

# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null. We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this. If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
#
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
#
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
#
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
#
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null

gbonvehi 06-04-2005 10:16 PM

Crontab files are in /var/spool/cron/crontabs/ and can be accesed by root only (unless you issue crontab -e as the user editing a crontab).


All times are GMT -5. The time now is 09:03 AM.