Segmentation fault bei einem cron.hourly job
Hy, ich habe ein Script, welches jede Stunde die Logfiles eines Bots parsen soll. Es liegt einfach in /etc/cron.hourly drin ----Schnipp--- cd /usr/bin/odin/ircstats ./ircstats ../logs/wvw.log ircstats.cfg ---Schnapp--- Das alles ! Wenn ich das Script normal starte, funzt es wunderbar (die gewünschte HTML-Datei wird auch anständig erstellt): _____________ router:~ # /etc/cron.hourly/ircstats Counting lines in logfile... 882 lines found. Analyzing log... |0%--------------25%----------------50%------------------75%---------------100%| ................................................................................ So far 1 days has been logged. The analysis took 0 seconds. Generating html... done. router:~ # _____________ Wenn ich es aber per cron laufen lasse, bekomme ich eine email: ____ "Generating html... /etc/cron.hourly/ircstats: line 2: 3413 Segmentation fault ./ircstats ../logs/wvw.log ircstats.cfg" ____ Die erstellte HTML-Datei hört einfach in der Mitte auf... Ich benutze SuSE 7.0, habe alle aktuellen patches installiert. Jemand ne idee ?
On 21 Feb 2001, at 21:00, Baldur wrote: [...]
----Schnipp--- cd /usr/bin/odin/ircstats ./ircstats ../logs/wvw.log ircstats.cfg ---Schnapp---
[...]
____ "Generating html... /etc/cron.hourly/ircstats: line 2: 3413 Segmentation fault ./ircstats ../logs/wvw.log ircstats.cfg" ____ Die erstellte HTML-Datei hört einfach in der Mitte auf... Ich benutze SuSE 7.0, habe alle aktuellen patches installiert.
Jemand ne idee ?
Hi, vielleicht relative Pfadangaben im Skript? Sayonara Alex
Hi Baldur(?), funktioniert denn irgendein anderes Skript? Ich denke da an sowas wie ---------8<------------------------- #!/bin/bash ls /usr/home > /root/mist.txt ----------8<------------------------- Probier das mal. Wenn das geht, dann versuch die benutzten Befehle einzuarbeiten, bis der Fehler auftritt. hth Alex
participants (2)
-
Alex Klein
-
Baldur