Subject: Re: [htdig] start/stop/restart
From: Franck Horlaville (email@example.com)
Date: Thu Jul 20 2000 - 14:43:46 PDT
>In the Bourne shell, as well as bash, the "$!" pseudo-variable will give
>you the PID of the last background process it started with an "&".
so it would look like something like this
my current start script :
#/Local/Library/WebServer/htdig/bin/rundig -v -l -s -a > /var/log/htdig.log
/Local/Library/WebServer/htdig/bin/rundig -v -l -s -a &
echo $! > /var/run/htdig.pid
a/ Got to either remove -v or find the correct syntax to output to the logfile
b/ The pid I get is the one of my shell running rundig (obviously).
Problem : when I kill it htdig continues to run.
solution : change rundig to call htdig with &
problem : how do I know it's dead so I can call htmerge ?
idea : add this to rundig :
while [the pid exists, syntax anyone ?]
do sleep 600
Is this a good solution ?
Thanks a bunch
-- Franck Horlaville
Athena Online +212 7 68 28 08 http://www.athena.online.co.ma/ mailto:firstname.lastname@example.org
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Thu Jul 20 2000 - 04:39:48 PDT