[Eisfair] Autohalt ohne Autohalt

Olaf Jaehrling eisfair at ojaehrling.de
Mo Jul 31 19:16:29 CEST 2017


Hi Carsten,


Carsten Lippert schrieb am 31.07.2017 um 18:33:
> Hallo Marcus,
> 
> Am 30.07.2017 um 20:15 schrieb Marcus Roeckrath:
> 
>> 2. Test
>>
>> In der autohalt den Debug-Modus anstellen; der fährt dann nicht mehr runter
>> sollte allerdings Mails erzeugen, wenn der cronjob aktiv wird.
> 
> Nach Einstellen des Debug-Modus muesste u.a. folgende Mail versendet
> worden sein:
> 
>  please wait a moment...
> ICMP Host Unreachable from 192.168.0.12 for ICMP Echo sent to 192.168.0.3
> ...all clients offline, but i wait 100 seconds and try it again
> 6/usr/local/autohalt/autohalt: line 316: 6: command not found

Wie sieht denn die Zeile 316 in
/usr/local/autohalt/autohalt
aus?
Hier wird offenbar eine Zahl vor den Befehl gesetzt.
So sieht sie bei mir aus (alles in einer Zeile)
====================================================
echo -n "${message}, but i wait ${SLEEP} seconds and try it again
`/usr/bin/expr ${AUTOHALT_TRIALS} \- ${idx}`"
====================================================

Achte auf die Klammern und \


Welche Paketversion hast du?

Gruß

Olaf



Mehr Informationen über die Mailingliste Eisfair