XamBonX
Commander
- Registriert
- Nov. 2002
- Beiträge
- 3.021
Ich habe einen test.sh mit
im crontab -e
Am Laufen!
Auf einem Server erstellt er mir eine cron.log.txt mit Datum, und den Text in neuer Zeile. Auf einem anderem Server erstellt er mir eine cron.log.txt mit Datum, und eine cron.log.txt? mit Text aus dem echo "xxx".
Was mache ich falsch?
Bash:
#!/bin/bash
date >> /home/admin/scripts/cron.log.txt ; echo "app01 hat erfolgreich den cronjob in test.sh ausgefuehrt" >> /home/admin/scripts/cron.log.txt
im crontab -e
Bash:
# Alle 10 Min., laut cron.log erfolgreich!
*/10 * * * * sudo sh /home/admin/scripts/test.sh
Am Laufen!
Auf einem Server erstellt er mir eine cron.log.txt mit Datum, und den Text in neuer Zeile. Auf einem anderem Server erstellt er mir eine cron.log.txt mit Datum, und eine cron.log.txt? mit Text aus dem echo "xxx".
Was mache ich falsch?