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 » passing args to a unix triggered application

Post new topic  Reply to topic
 passing args to a unix triggered application « View previous topic :: View next topic » 
Author Message
AndyDD
PostPosted: Thu Jan 31, 2008 9:19 am    Post subject: passing args to a unix triggered application Reply with quote

Newbie

Joined: 14 Dec 2007
Posts: 8

I am having a problem getting arguments passed to a triggered application without the rest of the MQTMC structure. Is there a way of getting args to the app without the MQTMC structure ? I have a generic program that printds a timestamp to a file when it is triggered, the name of the file it writes to is dependant on the Q that caused the trigger message. Is there a way of getting the 'Trigger data' value passed to the app or does my app need to know it's going to be triggered and handle a TMC2 structure ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jan 31, 2008 9:22 am    Post subject: Re: passing args to a unix triggered application Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

AndyDD wrote:
does my app need to know it's going to be triggered and handle a TMC2 structure ?


No.

You can trigger a shell script that will do whatever it wants with the MQTMC2 and then call your application with whatever data it wants to.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu Jan 31, 2008 9:48 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

The app could just discard the TMC2 structure; just ignore argv[1] in the code.
_________________
MQSeries.net helps those who help themselves..
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 » passing args to a unix triggered application
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.