**_ARSlist: "Where the Answers Are" and have been for 20 years_Terry,
You are correct in that we were unable to execute the script by issuing the command /abc/def/ghi/ksh shellscript.ksh. We had to get directly to the ghi directory before the ksh shellscript.ksh would execute. We will only be looking to run the escalation once or twice a day. Would it be any better to set a field via an escalation and running the script using a filter?
Thanks,
Roger A Nall
Sr. Remedy Developer
7668 Warren Parkway
Frisco, TX 75034
Desk: 972-464-3162
Cell: 973-652-6723
“You will get all you want in life, if you help enough other people get with they want”
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, October 23, 2013 9:43 AM
To: [email protected]
Subject: Re: Execute shell script
**
It's probably something associated to your environment variables.
Try this:
- Log into the server as the same userid that is running arsystem (usually 'root' for *nix)
- Issue the command '/abc/def/ghi/ksh shellscript.ksh' (instead of just ./shellscript.ksh)
- See if it still runs. I suspect that there are path issues associated with the default korne shell that aren't allowing you to run.
Also, be very careful when running scripts via Escalations. The last thing you want are 100's of shell scripts running concurrently on your server and bringing the system to a halt. You should also consider whether your script behaves properly if multilple instances of it are running concurrently.
HTH.
Terry
**
ARS – 7.1 sp4
Oracle 10g
AIX
We are trying to execute a shell script from an escalation. Our command line looks like this
/abc/def/ghi/ksh shellscript.ksh
The escalation fires however nothing happens. We are able to log into the box as aradmin and execute the script just fine but not from Remedy. I was wondering if anyone has any suggestions as to what we may be missing.
Thanks,
Roger A Nall
Sr. Remedy Developer
7668 Warren Parkway
Frisco, TX 75034
Desk: 972-464-3162
Cell: 973-652-6723
“You will get all you want in life, if you help enough other people get with they want”;
_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_
**
_ARSlist: "Where the Answers Are" and have been for 20 years_
Roger:
I noticed something in the format of your command line.
Shouldn't it read:
/usr/sbin/ksh /abc/def/ghi/shellscript.ksh
not
/abc/def/ghi/ksh shellscript.ksh
?
Inside shellscript.ksh, ensure that all your paths to executables and files are fully qualified. Do not assume that this shellscript.ksh has to be only run from a current working directory of /abc/def/ghi . Give it a shot.
As for how often you run this escalation, it is not the frequency that I am concerned about, but the number of records that match the qualification of the escalation. Can there by 100's , or only 1 or 2 ?
Terry
P.S (you could also try /abc/def/ghi/ksh ./shellscript.ksh (notice the ./ in front of your script name). While it may work, I would still change my script to be able to be run from any current working directory)
on Oct 23, 2013, Nall, Roger <[email protected]> wrote:
- Execute shell script Nall, Roger
- Re: Execute shell script Grooms, Frederick W
- Re: Execute shell script [email protected]
- Re: Execute shell script Nall, Roger
- Re: Execute shell script [email protected]
- Re: Execute shell script Nall, Roger
- Re: Execute shell script Grooms, Frederick W
- Re: Execute shell script Nall, Roger
- Re: Execute shell sc... Grooms, Frederick W
- Re: Execute shell sc... Grooms, Frederick W
- Re: Execute shell sc... Ben Chernys
- Re: Execute shell sc... Nall, Roger
- Re: Execute shell sc... Brian Goralczyk
- Re: Execute shell sc... Grooms, Frederick W
- Re: Execute shell sc... Nall, Roger

