Posted: Thu Jan 31, 2008 9:19 am Post subject: passing args to a unix triggered application
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 ?
Posted: Thu Jan 31, 2008 9:22 am Post subject: Re: passing args to a unix triggered application
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.
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