M
mmorsdorf
Grünschnabel
Da mein Erster Therd leider zu schnell ins php forum abgeschoben worden ist ...
Leider Funktioniert die Ausgabe nicht in die Datei geschrieben.
Leider Funktioniert die Ausgabe nicht in die Datei geschrieben.
PHP:
#!/bin/sh
set pid = ps -ef | grep "Prozessname" | grep "<defunced>"
echo Lok PID of Ascent
if ( "$pid" > "0" )
then
set pid = pidof ascent-world
echo pid found pid=<$pid
echo $pid >/home/www/web0/html/uptime/pid.txt
else
set pid = Alles OK
echo $pid >/home/www/web0/html/uptime/pid.txt
fi