Nancy L Henderson
Angesehenes Mitglied
hallo, ich habe mich noch nicht weiter mit dem Thema Cronjobs auseinander gesetzt.
Wollte allerdings mal kurz was fragen:
Bei Debian gibt es bekanntlich Ordner wie: /etc/cron.daily, /etc/cron.hourly usw.
Jetzt hab ich schon ein Script zur täglichen Datensicherung in /etc/cron.daily gelegt das wird auch jeden Tag um 0 Uhr igendwas aufgerufen und macht die Sicherung.
Jetzt will ich das ein Script jede Stunde ausgeführt wird. Also habe ich mir gedacht wo es den Ordner /etc/cron.hourly ja schon gibt, leg ich mein Script also da rein. Gesagt getan doch es wird nicht aufgerufen...
Ich habe das Script als User root getestet, ihm Chmod a+x gegeben usw. Es kann also nicht an einem Fehler im Script liegen sondern irgendwie will der CronDienst den Ordner nicht. Wie kann ich ihn dazu bringen das zu tun was ich will: Mein Script ausführen.
Und ja ich weiss das man mit crontab -e seine eigenen Crons schreiben kann. Ich hätte es aber gern in diesem Ordner... wenn es den doch schon gibt ?!
Wollte allerdings mal kurz was fragen:
Bei Debian gibt es bekanntlich Ordner wie: /etc/cron.daily, /etc/cron.hourly usw.
Jetzt hab ich schon ein Script zur täglichen Datensicherung in /etc/cron.daily gelegt das wird auch jeden Tag um 0 Uhr igendwas aufgerufen und macht die Sicherung.
Jetzt will ich das ein Script jede Stunde ausgeführt wird. Also habe ich mir gedacht wo es den Ordner /etc/cron.hourly ja schon gibt, leg ich mein Script also da rein. Gesagt getan doch es wird nicht aufgerufen...
Ich habe das Script als User root getestet, ihm Chmod a+x gegeben usw. Es kann also nicht an einem Fehler im Script liegen sondern irgendwie will der CronDienst den Ordner nicht. Wie kann ich ihn dazu bringen das zu tun was ich will: Mein Script ausführen.
Und ja ich weiss das man mit crontab -e seine eigenen Crons schreiben kann. Ich hätte es aber gern in diesem Ordner... wenn es den doch schon gibt ?!