You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Christian Hilgers (Commented) (JIRA)" <ji...@apache.org> on 2012/01/26 12:31:40 UTC

[jira] [Commented] (AMQ-2899) whoami not in PATH on Solaris

    [ https://issues.apache.org/jira/browse/AMQ-2899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193760#comment-13193760 ] 

Christian Hilgers commented on AMQ-2899:
----------------------------------------

The fix applied does not work on all Solaris installations as /ucr/ucb is not part of the minimal installation bundle.

My suggestion to replace the who am I or whoami is:

`who am i | cut -d " " -f 1`
>From my tests this is platform independend, and for Solaris you can set the application user easy by setting it in activemq.xml from AMQ-2907 Solaris 10 SMF manifest

                
> whoami not in PATH on Solaris
> -----------------------------
>
>                 Key: AMQ-2899
>                 URL: https://issues.apache.org/jira/browse/AMQ-2899
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.0
>         Environment: SunOS wsfmaz03 5.10 Generic_142901-06 i86pc i386 i86pc
>            Reporter: Mateusz Pawlowski
>            Assignee: Dejan Bosanac
>             Fix For: 5.4.1
>
>
> bin/activemq script has reference to missing command
> Standard PATH for Solaris is /bin:/usr/bin and these folders do not contain 'whoami' this is located in /usr/ucb/bin which is rarely set in PATH 
> I recommend use of $LOGNAME instead or detection of whoami location

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira