Terry, The first line in the script is #!/usr/bin/ksh which should actually preclude the need to put ksh in front of file name, at least in some circles. However, we did find that the script would not execute on the server without the ksh in front of the file name which is why I added ksh in my command line format.
The form that we are using only has one record in it so I think we are covered there. I am thinking that like on the server we need to get to the ghi directory first. My problem is I do not know how to represent that in the command line format. I will try you suggestion of /usr/sbin/ksh /abc/def/ghi/shellscript.ksh. Also, I always thought that a line in a script (program, procedure) that began with # meant that the line should be ignored. So would that mean that the first line #!/usr/bin/ksh is being ignored which would be why we need to add the ksh in front of the filename? 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 10:28 AM To: [email protected] Subject: Re: Execute shell script ** 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]<mailto:[email protected]>> wrote: ** 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]<mailto:[email protected]> Sent: Wednesday, October 23, 2013 9:43 AM To: [email protected]<mailto:[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 on Oct 23, 2013, Nall, Roger <[email protected]<mailto:[email protected]>> wrote: ** 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_ _ARSlist: "Where the Answers Are" and have been for 20 years_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

