Philipp Meier wrote:

> 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]

Phillip,

Tom agrees with you, and now I do to. I'll change it to a TERM signal in the next
version.
While the $() syntax is equivalent to backticks in recent Bash (and I prefer it
for readability,
and also becaue the backtick is in a confusing place on my french azerty
keyboard...), I think
Tom and Toby are right that it might be better to use backticks for portability.
I'll change this too.
I'll post a new version soon before I send it to the jboss-dev list.

So far I have tested it with IBM,SUN,and Blackdown jdk1.3 linux ports and all work

fine.

Thanks,
Chris



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

Reply via email to