Den:
Correct. My fault. You have to have records in order to do a comparison.
James McKenzie
L-3 GSI
________________________________
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Den Fong
Sent: Friday, September 01, 2006 1:49 PM
To: [email protected]
Subject: Re: FIXED: arimportcmd on Escalation
**
James
I tried that, and the 1=1 but neither works. Because there are no records, the system won't run anything on the if side.
Den
**
>>> "McKenzie, James J C-E LCMC HQISEC/L3" <[EMAIL PROTECTED]> 9/1/2006 2:42 PM >>>
Den:
That explains a lot. Why not just run the escalation as a timed event with no run-if statement and see if that works? I think that if this does not work the old '1=1' should force it to work.
James McKenzie
________________________________
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Den Fong
Sent: Friday, September 01, 2006 1:28 PM
To: [email protected]
Subject: Re: FIXED: arimportcmd on Escalation
**
Okay
I found out why now, there is a process that runs just before this one and it removes all the records from this form. So therefore when the escalation runs there are no records and does not execute the if tab and uses the else tab instead.
Den
**
>>> "McKenzie, James J C-E LCMC HQISEC/L3" <[EMAIL PROTECTED]> 9/1/2006 1:44 PM >>>
Den:
Now you explan this. I've seen this before where the escalation would not run because there was no qualification. Strange as it should run if there is no qualification every time.
James McKenzie
________________________________
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Den Fong
Sent: Friday, September 01, 2006 12:35 PM
To: [email protected]
Subject: FIXED: arimportcmd on Escalation
**
I have it fixed now, hopefully. The strange thing was I had this RUN PROCESS on if tab of the escalation which doesn't have a qualification. However I moved it the else tab and it ran.
Den
**
>>> "McKenzie, James J C-E LCMC HQISEC/L3" <[EMAIL PROTECTED]> 8/30/2006 12:58 PM >>>
Den:
Why are you doing things the hard way?
Just call the script from the Escalation. Make sure the script calls a valid shell. Make sure that the application can be run by the REMEDY user (be it root or someone else.) I have run scripts from ALs, Filters and Escalations and they all worked after I massaged the command line like so:
/opt/ar/bin/somescript_exists_here.sh
In the script the first line is:
#!/bin/sh
# some comments here.
Commands
# Yet another comment
It appears that your script is either improperly written (and if you send it to me off-list I will try to look at it)
James McKenzie
L-3 GSI

