Author |
Message
|
loodeen |
Posted: Tue Nov 18, 2003 7:02 pm Post subject: Trigger shell script!!! |
|
|
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 |
|
 |
kman |
Posted: Tue Nov 18, 2003 7:18 pm Post subject: |
|
|
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 |
|
 |
loodeen |
Posted: Tue Nov 18, 2003 7:41 pm Post subject: |
|
|
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 |
|
 |
kman |
Posted: Tue Nov 18, 2003 7:55 pm Post subject: |
|
|
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 |
|
 |
loodeen |
Posted: Tue Nov 18, 2003 8:04 pm Post subject: |
|
|
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 |
|
 |
kman |
Posted: Tue Nov 18, 2003 8:09 pm Post subject: |
|
|
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 |
|
 |
loodeen |
Posted: Tue Nov 18, 2003 8:14 pm Post subject: |
|
|
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 |
|
 |
loodeen |
Posted: Tue Nov 18, 2003 8:15 pm Post subject: |
|
|
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 |
|
 |
|