From: Markus Rietzler
Date: Fri Mar 29 2002 - 06:59:34 EST
on my suse linux box i started it with
run.x &
disown %
disown is a built-in function in my bash-shell
on hpux there is a command called nohup
nohup run.x
that prevents the running programm from beeing killed if you close your
active shell, means if you logout the programm still runs in background
mfg
Markus Rietzler
* <rietzler_software/> | http://www.rietzler-software.de
* Wuppertal-Navigator | http://www.wuppertal-navigator.de
* eMail:
Neue Nordstrasse 43
42105 Wuppertal
Fon: 0700.RIETZLER (0700.7438 9537)
0202.420830
Fax: 0202.242 24 66
-----Ursprüngliche Nachricht-----
Von:
[mailto:]Im Auftrag von cgi
Gesendet: Freitag, 29. März 2002 20:44
An:
Betreff: [aseek-users] Markus script
Dear Markus Rietzler,
Aspseek 1.2.7 still crashing
How do you use your script below
#/bin/sh
cd /opt/aspseek/sbin
log=/httpd/data/aspseek/db/run.log
echo "aspseek started on " `date` > $log
while true
do
sleep 3
./searchd -R -D
numofproces=`ps -ef | grep -v "grep" | grep -c searchd`
while test "$numofproces" -ne "0"
do
# nop
sleep 1
numofproces=`ps -ef | grep -v "grep" | grep -c searchd`
done
echo "searchd restarted on " `date` >> $log
done
echo "searchd ended on " `date` >> $log
echo "searchd daemon ended"
|
|
|