[SPARCbook] Script file
Meer Ahmed
sparcbook at sunhelp.org
Tue Dec 12 09:45:03 CST 2000
Thanks a lot Thierry !!!
----- Original Message -----
From: "Thierry Besancon" <Thierry.Besancon at prism.uvsq.fr>
To: <sparcbook at sunhelp.org>
Cc: <rjusta at unicom-inc.com>
Sent: Tuesday, December 12, 2000 8:00 AM
Subject: Re: [SPARCbook] Script file
Dixit "Meer Ahmed" <sunsolaris80 at hotmail.com> (le Thu, 7 Dec 2000
16:07:31 -0500) :
Hi Bob,
Does Solaris 8 (kernel 5.8) supports this:
kill -TERM 'cat /usr/local/apache/logs/httpd.pid'
Well, written this way, certainly not and the shell will be the first
to refuse your command. Write it this way :
kill -TERM `cat /usr/local/apache/logs/httpd.pid`
Keep in mind what is kernelland stuff and what is userland
stuff...
As I have to use this in one of my script file, I tried using this
under my shell prompt it gave me following error:
kill: invalid id
Well, are you sure your pid file is uptodate with the running process ?
You might use
/usr/bin/pkill -x -u 0 '(httpd)'
like what is done in all the Solaris rc files...
--
Thierry BESANCON
_______________________________________________
Sparcbook mailing list - Sparcbook at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sparcbook
More information about the SPARCBook
mailing list