|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ AIX Startup Issues |
« View previous topic :: View next topic » |
Author |
Message
|
pfarrel |
Posted: Tue Jan 25, 2005 10:57 am Post subject: MQ AIX Startup Issues |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
I have an RC.MQSTART script on my AIX platform to assist the operator in starting up my MQ Queue Manager. I am having a problem with the runmqlsr and runmqtrm commands.
Here is part of my startup script:
su - mqid -c /usr/bin/strmqm QMNAME
su - mqid -c /usr/bin/strmqcsv QMNAME
su - mqid -c /usr/bin/runmqlsr -t tcp -m QMNAME &
su - mqid -c /usr/bin/runmqtrm -m QMNAME &
for each command, the su causes the script to ask the operator for the password for the userid mqid. However the runmqlsr and runmqtrm commands cause additional messages to be written to the console. I need to be able to supress these messages, to allow the commands to be scripted. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 25, 2005 11:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Try redirecting stderr to /dev/null. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jan 25, 2005 5:35 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Also:
for each command, the su causes the script to ask the operator for the password for the userid mqid.
If you are root, then it should not ask for the password when you su. Something is wrong |
|
Back to top |
|
 |
pfarrel |
Posted: Wed Jan 26, 2005 4:50 am Post subject: |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
Our operators do not have root authority.
They log on with thier own ID, and issue the commands.
Is there a better way to do this ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 26, 2005 4:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You might look at sudo instead of su. It would require the operators to enter their own passwords, usually once, instead of entering the root password. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|