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 » General IBM MQ Support » Trigger shell script!!!

Post new topic  Reply to topic
 Trigger shell script!!! « View previous topic :: View next topic » 
Author Message
loodeen
PostPosted: Tue Nov 18, 2003 7:02 pm    Post subject: Trigger shell script!!! Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

Hello,

I use a trigger queue to trigger a shell script on AIX platform, but when the trigger is run, there is always a message 'Error starting triggered application'. What's the proper ways to trigger shell script on triggering process??? Many thanks.
Back to top
View user's profile Send private message
kman
PostPosted: Tue Nov 18, 2003 7:18 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

Well, make sure the process can be run by the trigger monitor. The ApplId specified in the process must be runnable from where the trigger monitor is running. You need to specify full path, and give access to the script.

You can test by running the script using the same statement you put in ApplId. If that works, then check the authority. I bet it must either these two.
Back to top
View user's profile Send private message Yahoo Messenger
loodeen
PostPosted: Tue Nov 18, 2003 7:41 pm    Post subject: Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

Thanks for your help, the problem is that the shell script can be run by the trigger process, but just there is always 'Error start triggered application' on the trigger monitor. Any idea???
Back to top
View user's profile Send private message
kman
PostPosted: Tue Nov 18, 2003 7:55 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

If the script can be run the same way it was specified in the ApplId, then the only other thing I can think off is authority.
The script must be given permission to mqm to run. Triggered application always is run by mqm.
You can also put your script in the same directory as your trig monitor. See if that has something to do with it. Do chmod to allow mqm to run it.
Back to top
View user's profile Send private message Yahoo Messenger
loodeen
PostPosted: Tue Nov 18, 2003 8:04 pm    Post subject: Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

The script can be run by mqm, but the message still appear. Is trigger application only can be run by 'mqm'??? If not, how can I change the identity of running trigger application to other users???? Your help is much more appreciated.
Back to top
View user's profile Send private message
kman
PostPosted: Tue Nov 18, 2003 8:09 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

Post in your process definition, your run command for the script, and the trig monitor error.
Back to top
View user's profile Send private message Yahoo Messenger
loodeen
PostPosted: Tue Nov 18, 2003 8:14 pm    Post subject: Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

Below is my process

dis process(t_proc)
1 : dis process(t_proc)
AMQ8407: Display Process details.
DESCR( ) APPLICID(/ips/mnb/batch/etc/q.sh)
USERDATA( ) ENVRDATA( )
PROCESS(T_PROC) ALTDATE(2003-11-1
ALTTIME(19.39.37) APPLTYPE(UNIX)
Back to top
View user's profile Send private message
loodeen
PostPosted: Tue Nov 18, 2003 8:15 pm    Post subject: Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

below is my trigger monitor error

/ips/mnb/batch/etc/q.sh 'TMC 2T_TRIG T_PROC /ips/mnb/batch/etc/q.sh mq.test '
Error starting triggered application.

__________________________________________________
Waiting for a trigger message
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Trigger shell script!!!
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.