Script läuft via cron nicht

Arnd Behring arnd at g3th.net
Mon Mar 22 18:26:54 CET 2004


On Mon, 22 Mar 2004 16:39:15 +0100 Florian Schwarz <floh at linland.de> wrote:
> Frank Matthieß schrieb:
> > Florian Schwarz [2004-03-19 21:01 CET]:
> > 
> >>Hallo Liste,
> >>
> >>ich habe mir ein kleines Script gebaut was checken soll ob mein vdr noch 
> >>läuft und ihn, falls er gecrasht ist, neu startet. Hier der Code dazu:
> >>
> >> [code]
> 
> >>Der cron Aufruf sieht wie folgt aus:
> >>
> >>0-59/2 * * * *          root /usr/local/bin/checkit.sh
> > 
> > 
> > In der Systemcrontab ist das ok. Aber in einer User crontab solltest Du
> > "root" entfernen.
> 
> Das ist die crontab von root, auf dem Rechner benutze ich keine 
> verschiedenen User da die Kiste eh nur eine Aufgabe hat.

Ich glaube es geht um Systemcrontab (/etc/crontab) oder Usercrontab
(crontab -e). Dabei spielt es keine Rolle, ob du das (crontab -e) jetzt als root oder als unprivilegierter User ausführst, beides sind die userbezogenen Crontabs. Vor daher probier mal den Eintrag "root" in der Crontab-Zeile weg zu lassen.
-- 
Arnd Behring http://arnd.g3th.net/ irc://irc.epd-me.net/help
42!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20040322/41588e20/attachment.sig>


More information about the Linux mailing list