On 10 Aug 2001, at 11:32, Frederic Wiesenbach wrote:
Guten Morgen,
ich habe ein Scribt geschreiben, das mit cron alle Zwei Stunden ausgeführt werden soll. Wenn ich das Script manuell starte klappt es wenn ich es manuell in kcron starte auch, wenn er es mit cron ausführt net.
Auszug aus dem Script:
antivir /root/KDesktop/ -s antivir /windows/DATA/Gast/ -s sendmail -q fetchmail isdnctrl hangup ippp0 isdnctrl hangup ippp1
Auszug aus der Mail, die ich bekommen habe:
..... Thank you for using AntiVir /root/sh/autostart.sh: sendmail: command not found fetchmail: couldn't find canonical DNS name of pop.gmx.net /root/sh/autostart.sh: isdnctrl: command not found /root/sh/autostart.sh: isdnctrl: command not found
Er führt in dem Script auch antivir aus, was aber funzt.
cronjobs durchlaufen kein Profile (/etc/profile, .bashrc, .profile, .kshrc)und somit sind die Pfade nicht gesetzt. Setzen und gut is. Andreas