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 Process fails if I add ' &' to put it in backgro

Post new topic  Reply to topic
 Trigger Process fails if I add ' &' to put it in backgro « View previous topic :: View next topic » 
Author Message
JosephGramig
PostPosted: Thu Aug 27, 2009 10:34 am    Post subject: Trigger Process fails if I add ' &' to put it in backgro Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

OS is HPUX
WMQ 6.0.2.2

Code:

trigger process def is like:
   PROCESS(someProc)          APPLTYPE(UNIX)
   APPLICID('/usr/local/bin/sudo -u someid /somedir/sh/some.sh param1 &')
   ENVRDATA( )                             USERDATA( )


it fails. If I remove the ' &', works. I want to run this in the background. The same command seems to work from the command line.

I'm wondering why it fails.

MQFB_APPL_CANNOT_BE_STARTED
Back to top
View user's profile Send private message AIM Address
bruce2359
PostPosted: Thu Aug 27, 2009 10:48 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Look at the error logs.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Aug 27, 2009 11:49 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Nothing of interest or related in either the main error logs or the ones that go with the QMGR.

Off line, a friend was suggesting that the & was not the last param on the command line because of the way runmqtrm constructs the command.

I'm going to try to put the & in USRDATA.
Back to top
View user's profile Send private message AIM Address
bruce2359
PostPosted: Thu Aug 27, 2009 11:59 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

A Google search for MQFB_APPL_CANNOT_BE_STARTED will provide a variety of things to look for.

Add this to the process definition: ENVRDATA(‘ &’). Inside the parentheses: apostrophe space ampersand apostrophe.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 27, 2009 8:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Bruce is right. The & should be in envrdata. Can't remember if we had quotes around it or not. Shouldn't make much difference because upper case & is still &...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Fri Aug 28, 2009 5:15 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

If memory serves (?), you need the unix command, a space, then the ampersand.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Fri Aug 28, 2009 9:26 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Putting it in USRDATA worked or didn't break it.

Now I'm wondering if it started in the background or sent the & in as a parameter...

Now that a friend points it out, it is EnvData as this link says:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/cs12590_.htm

Thx Bruce and all.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Trigger Process fails if I add ' &' to put it in backgro
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.