ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » passing environment variables to triggered applications

Post new topic  Reply to topic
 passing environment variables to triggered applications « View previous topic :: View next topic » 
Author Message
yiftah_o
PostPosted: Wed Jul 16, 2003 12:31 am    Post subject: passing environment variables to triggered applications Reply with quote

Newbie

Joined: 30 Jun 2002
Posts: 9
Location: Raanana, Israel

Hi

I have an application that works well when run from the command line but fails (because of wrong PATH) when it is triggered with the trigger monitor.
how can I make sure all the variables in the shell are passed to the triggered process?

OS: unix
MQS ver: 5.2

thanks for the help,
Yiftah
Back to top
View user's profile Send private message
mrlinux
PostPosted: Wed Jul 16, 2003 5:24 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well one way is to create a shell script and trigger that and inside the shell
script set the path.


export PATH=$PATH:"PATH_TO_EXECUTABLE"
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
sree
PostPosted: Wed Jul 16, 2003 6:16 pm    Post subject: Reply with quote

Novice

Joined: 12 Mar 2003
Posts: 19

I guess the trigger monitor may be running on different ID, other than on which you ran the application on command prompt. Set the class path in .profile file of the ID (may be mqm) on which trigger monitor is running. you can find .profile file at /home/mqm . It may work try that.
_________________
Thank you.

sree
Back to top
View user's profile Send private message
yiftah_o
PostPosted: Thu Jul 17, 2003 12:02 am    Post subject: Reply with quote

Newbie

Joined: 30 Jun 2002
Posts: 9
Location: Raanana, Israel

guys, thanks for the responses. this got me to refine my issue.
after further investigation I saw that the runmqtrm command has -r-sr-s--- permissions. this make my triggered application run as mqm user (even when I run it from another user) and not get the local environment variables (PATH was just one example).
running a script that runs my application may hurt performance. any other ideas?
I tried moving the runmqtrm to my account and changed its permissions to -rwxr-xr-x this works but can it cause any troubles?
Back to top
View user's profile Send private message
mrlinux
PostPosted: Thu Jul 17, 2003 9:27 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

No it shouldnt cause issues, as long as the user running it as access to all the queues including the DEAD LETTER QUEUE
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » passing environment variables to triggered applications
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.