sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #10563
problem med styring af crontab
Hejsa
Jeg har problem med at styre crontab:
Jeg laver en crontab filnavn med nedenstående fil (crontest):
crontab testcron.
testcron:
SHELL=/bin/sh
MAILTO=bj
# test mail med cron
*/1 * * * * root mail -s "test" bj
Sådan som jeg læser man crontab skulle ovenstående sende en test mail hvert
minut til bruger bj ?
Min /etc/crontab ser således ud:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=bj
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
Hvad gør jeg galt ?
Mvh.
Brian Jensen
Follow ups