Page 1 of 1

Problem mit Cronjob...

Posted: 2003-09-09 09:50
by Anonymous
Hi und Hallo,

ich möchte ein PHP-Script über einen Cronjob aufrufen:

00 07 * * * * root /script/

leider kommt immer folgende Fehlermeldung:

Code: Select all

/bin/sh: line 1: root: command not found
Was mache ich da falsch?

Vielen Dank!

MfG;

Astrid

Re: Problem mit Cronjob...

Posted: 2003-09-09 09:58
by arty
Hallo Astrid,

du musst das Script schon im Cronjob aufrufen, sonst klappt das nicht.

bye
arty

Re: Problem mit Cronjob...

Posted: 2003-09-09 11:34
by dopefish
00 07 * * * * root /script/

die angabe vom user ist nur notwendig beim /etc/crontab
wenn du einträge per crontab -e machst ist die userangabe nicht notwendig

Re: Problem mit Cronjob...

Posted: 2003-09-09 11:43
by chris76
Richtige Schreibweise ist bei dem Cron z.b.

00 07 * * * * /root/scripte/deinscript

Wenn das / fehlt dann sucht er nach einem script root

Ciao Christian