[jboss-user] [Beginner's Corner] - Re: Find JBoss installation

Tomasz Cendrowski do-not-reply at jboss.com
Thu Oct 11 07:05:17 EDT 2012


Tomasz Cendrowski [https://community.jboss.org/people/tcendrowski] created the discussion

"Re: Find JBoss installation"

To view the discussion, visit: https://community.jboss.org/message/764351#764351

--------------------------------------------------------------
Thanks for answers. I made it this way:

JBOSS_HOME=$(ps efax | grep "JBOSS_HOME" | grep java | sed "2,1000d" | sed 's/.*JBOSS_HOME=//' | sed 's/services\/jboss .*/services\/jboss/')

In my working environment JBOSS_HOME always ends with '/services/jboss' so I am cutting everything after that and everything from beggining of listing to 'JBOSS_HOME=' text. Those things are made by sed. sed "2,1000d" takes only first listing if more than one were found.

Greets.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/764351#764351]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121011/9d5ec1df/attachment.html 


More information about the jboss-user mailing list