Author |
Message
|
pkbab |
Posted: Sun Aug 22, 2010 8:01 pm Post subject: Triggering |
|
|
Novice
Joined: 08 Aug 2009 Posts: 16
|
Hi,
am trying to run the script using triggering when a message arrived.
I executed the script manually its working fine.
I found one error './q no such file or directory' in err.txt file which i defined in service when i put message.
so i feel somewhere it is copying the script and processing ,unable to read some paths.
Please let me know ur suggestions
Thanks,
krish |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 23, 2010 4:05 am Post subject: Re: Triggering |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pkbab wrote: |
i feel somewhere it is copying the script and processing ,unable to read some paths. |
You think?
How is the script being triggered? What run time shell will it have? Do you not feel "q" might work better than "./q"? Or at least give more flexibility?
The q application is a simple soul & doesn't use classpaths or similar. Fix your trigger process & it'll be fine
I also question the value of running it as a triggered process, but that's your business & your design. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pkbab |
Posted: Mon Aug 23, 2010 5:39 am Post subject: Triggering |
|
|
Novice
Joined: 08 Aug 2009 Posts: 16
|
Hi,
I have the script which includes support utilities to retrieve object config details when a request message comes and i defined service with STDOUT and STDERR for runmqtrm.
In ERR.TXT i found the error .......no such file or directory.
I changed the script couple of times while it was in process.
I changed applicid and i tried.no issues with triggering.
I killed the service and restarted.
so trigger monitor will do the job like copying script in somepath and process
if not why its throwing error even it was clear in script and working when executed directly with (./)
please leave ur suggestions
Thanks
........ |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 23, 2010 5:47 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
I executed the script manually its working fine. ... working when executed directly with (./) |
So, your script works from your home directory, but fails for missing files when executed as an MQ process.
Does your script name complete file paths? Does your script set environment variables for the search path?
Quote: |
so trigger monitor will do the job like copying script in somepath and process |
No, the trigger monitor runmqtrm only starts a process. It does not copy anything. _________________ 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 |
|
 |
Vitor |
Posted: Mon Aug 23, 2010 6:35 am Post subject: Re: Triggering |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pkbab wrote: |
I have the script which includes support utilities to retrieve object config details when a request message comes |
The q application won't do that will it? If so, how? It acts on messages not configuration details.
pkbab wrote: |
so trigger monitor will do the job like copying script in somepath and process |
No it won't
pkbab wrote: |
if not why its throwing error even it was clear in script and working when executed directly with (./) |
Because the script might be clear, but it's not right for the reasons I indicated above.
pkbab wrote: |
please leave ur suggestions |
I've nothing to add that I didn't say last time. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pkbab |
Posted: Mon Aug 23, 2010 5:09 pm Post subject: triggering |
|
|
Novice
Joined: 08 Aug 2009 Posts: 16
|
Thanks grand and jedi for ur valuable suggestions |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 23, 2010 6:38 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Please post your solution for this so that we can all benefit. _________________ 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 |
|
 |
pkbab |
Posted: Mon Aug 23, 2010 10:43 pm Post subject: triggering |
|
|
Novice
Joined: 08 Aug 2009 Posts: 16
|
Its working............
modified the script and i have given the proper directory paths.
Instead of giving (./) i mentioned the clear path in the script itself.Now its working fine.
Thanks everyone for your valuable suggestions
Thanks,
krishhhhh |
|
Back to top |
|
 |
|