Donna Garverick wrote:
>
> hi all!
>
> during mark bixby's talk at hpworld on the secure web
> server, he mentioned that apache should be killed rather
> that doing an abortjob on the server. ok....how does one do
> it? seeing as how i don't have mpelx36 on my system (yet
> :-), i'm logged on as mgr.apache and i try....
>
> :run sh.hpbin;info="kill `cat /APACHE/PUB/logs/httpd.pid`"
> kill 92: missing closing """
>
> <sigh> ok...trying all manner of quote combinations, i'm not
> making any progress....
The trick required here is you need to use the -c option to see the shell
you're executing a single command, i.e.:
:XEQ SH.HPBIN.SYS "-c 'kill `cat logs/httpd.pid`'"
Which you will note uses every type of quote-like character there is. ;-)
> so then i try going into the shell and....
>
> /APACHE/PUB: kill `cat /APACHE/PUB/logs/httpd.pid`
> kill: 65610: Operation not permitted
If you don't have the required patches, you need to be logged on as the
user.account in the HTTPD !JOB statement (WWW.APACHE?) in order to do the kill.
- Mark B.