Hello Tom,

On Fri, Feb 09, 2001 at 08:23:54AM +1030, Tom Cook wrote:
> On Thu, 08 Feb 2001, you wrote:

[snip]

> [snip]
> > elif [ "$1" = "stop" ] ; then
> >   shift
> >   kill -9 $(cat /var/run/jboss.pid)
> 
> I agree with Toby on this, it is not portable... in fact I can't find a shell
> in which it works.  This syntax is for environment variables, what you are
> looking for is

It's bash syntax and means the same as backticks. (At least my linux bash
and zsh support it).

> kill -9 `cat /var/run/jboss.pid`
> 
> note that backwards single quotes.

I'm unsure if a kill -9 is the right way to do this?! Jboss has no chance
to enter it's shutdown hook!

Happy hacking,
        -billy.

-- 
Philipp Meier                              o-matic GmbH
Gesch�ftsf�hrer                  Pfarrer-Wei�-Weg 16-18
Tel.: +49-(0)700-66284236                     89077 Ulm


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to