Ich versuche auf einem VSERVER von server4you einen Cronjob zu erstellen.
wenn ich cronjob -e eingebe erhalte ich
#min hour day month dow user command
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /etc/cron.daily/test
ansich sollte hiermit der befehl df > datei.txt ausgeführt werden geht aber nicht.
Dann hab ich in etc nochmal eine datei crontab gefunden die folgendes enthält. (den test befehl hab ich eingefügt)
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
24 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
21 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
53 2 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
5 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
3,13,23,33,43,53 * * * * root /usr/local/confixx/confixx_counterscript.pl
2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,45,50,55 * * * * root /etc/test
aber auch das klappt nicht
wenn ich cronjob -e eingebe erhalte ich
#min hour day month dow user command
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /etc/cron.daily/test
ansich sollte hiermit der befehl df > datei.txt ausgeführt werden geht aber nicht.
Dann hab ich in etc nochmal eine datei crontab gefunden die folgendes enthält. (den test befehl hab ich eingefügt)
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
24 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
21 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
53 2 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
5 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
3,13,23,33,43,53 * * * * root /usr/local/confixx/confixx_counterscript.pl
2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,45,50,55 * * * * root /etc/test
aber auch das klappt nicht