Hallo zusammen.
Ich taste mich weiter in anacron vor. Ich habe ein Script (backup_script) erstellt. Das soll täglich einmal starten. script:
#!/bin/bash #Meldung ausgeben export DISPLAY=:0 notify-send -i /home/user/.icons/warning.png "ACHTUNG! Nicht ausschalten."" Backup läuft..." #Kopie von Verzeichnis zum pi pi@xxx.xxx.x.xx rsync -au -e "ssh -i /home/user/.ssh/key" /home/user/ pi@xxx.xxx.x.xx:/media/pi/Backup #Abschlussmeldung notify-send -t 0 "Backup durchgeführt." play /home/user/Musik/Meldung/programm_beendet.wav #
Wenn ich das script ausführe (.desktop-Datei erstellt) klappt alles. Also notify-send rsync play wav Datei. Das script habe ich nach /etc/cron.daily kopiert. Hier wird nur die wav Datei abgespielt. Weder notify-send noch rsync klappen.
Ausgabe grep -i cron /var/log/syslog:
Feb 28 08:13:35 wolle-Vostro-1720 anacron[745]: Job `cron.daily' terminated (mailing output) Feb 28 08:13:35 wolle-Vostro-1720 anacron[745]: Can't find sendmail at /usr/sbin/sendmail, not mailing output Feb 28 08:13:35 wolle-Vostro-1720 anacron[745]: anacron: Can't find sendmail at /usr/sbin/sendmail, not mailing output Feb 28 08:13:35 wolle-Vostro-1720 anacron[745]: Normal exit (1 job run) Feb 28 08:17:01 wolle-Vostro-1720 CRON[2776]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
/var/spool/anacron/cron.daily wurde auf heute (20180228) aktualisiert.
Gibt es noch weitere log-Dateien wo ich weiter Hinweise kriege? Danke im voraus,
Suwo