Re: Crontab-Befehl wird nicht ausgef?hrt

From: jesk <jesk(at)killall.org>
Date: 11 Aug 2003 00:51:42 +0200

Am Mo, 2003-08-11 um 00.28 schrieb Volker:
> > Harold Gutch schrieb:
> >
> > > On Sun, Aug 10, 2003 at 11:34:16PM +0200, Volker wrote:
> > > > Hi,
> > > >
> > > > habe folgenden cronjob definiert, der so via crontab -l auch ausgegeben
> >
> > > > wird:
> > > >
> > > > */1 * * * * /usr/local/bin/php -q
> > > > /usr/local/apache/htdocs/dir1/dir2/cron_ministatistik.php
> > >
> > > Wie hast du den cronjob "definiert"? Per "crontab -e" eingetragen?
>
> Hallo Harold,
>
> > Nein, mit Ultraedit auf meinem PC angelegt und rübergeschoben!
> >
> > > Uebrigens brauchst du das /1 in der Minutenangabe nicht.
> >
> > Ich weiss, da steht normalerweise eine 5, habe die aus Testgründen jetzt
> > auf
> > 1 gesetzt! Trotzdem danke!
> >
> > >
> > > > Das Programm wird komischerweise nicht ausgef?hrt.
> > >
> > > Was sagt denn /var/log/cron?
> >
> > Aug 10 22:13:00 jung /usr/sbin/cron[78802]: (root) CMD (/usr/local/bin/php
> > -q
> > /usr/local/apache/htdocs/dir1/dir2/cron_ministatistik.php^M)
> >
> > Das ^M am Ende kommt mir komisch vor, ist das normal?
> >
> > Der CronDaemon sendet folgende Mail:
> >
> > Subject: Cron <root(at)jung> /usr/local/bin/php -q
> > /usr/local/apache/htdocs/dir1/dir2/cron_ministatistik.php
> > X-Cron-Env: <SHELL=/bin/sh>
> > X-Cron-Env: <HOME=/root>
> > X-Cron-Env: <PATH=/usr/bin:/bin>
> > X-Cron-Env: <LOGNAME=root>
> > X-Cron-Env: <USER=root>
> >
> > *** No input file specified ***
> >
> > Wieso erscheint diese Fehlermeldung? cron_ministatistik existiert ja, sonst
> >
> > würde es von Shell aus ja ebenfalls nicht gehen.
> >
> > Oder kann es sein, dass diese Meldung eher aus dem cron_ministatistik
> > kommt,
> > denn dort habe ich mehrere Kommandos drin:
> >
> > <?php
> > set_time_limit(180);
> > ob_start();
> > passthru("/usr/local/bin/lynx -connect_timeout=120 -source
> > http://www.MeineDomain.de/boards/ministatistik.php");
> > $html = ob_get_contents();
> > ob_end_clean();
> > // write output to file
> > $fp = fopen("/www/htdocs/meinedomain/boards/homepage_stats.php","w");
> > fwrite($fp, $html);
> > fclose($fp);
> > ?>
> >
> > Wie gesagt, alles läuft auf meiner anderen FreeBSD-Maschine tadellos.
> >
> > Danke und Gruss
> > Volker
>
>
> To Unsubscribe: send mail to majordomo.FreeBSD.org
> with "unsubscribe de-bsd-questions" in the body of the message

hi,

nein, es kommt garantiert nicht von deinem script, da diese wohl kaum
dein cron daemon simuliert und dir mails schreibt. check doch mal lieber
deine crontabs, und schreib sie mal in einem anstaendigen editor der
nicht diese pseudo zeilenumbrueche verwendet.

props jesk

To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 11 Aug 2003 - 00:54:10 CEST

search this site