Bash, Shell, PHP, Python, Perl, CGI
-
Anonymous
-
Post
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
-
arty
- Userprojekt

- Posts: 729
- Joined: 2002-06-12 10:11
-
Contact:
-
Post
by arty »
Hallo Astrid,
du musst das Script schon im Cronjob aufrufen, sonst klappt das nicht.
bye
arty
-
dopefish
- Posts: 142
- Joined: 2003-02-06 12:57
- Location: Karlsruhe
-
Contact:
-
Post
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
-
chris76
- Posts: 1878
- Joined: 2003-06-27 14:37
- Location: Germering
-
Post
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