Fred,


Here is what the arfork log shows:



+++ Begin log Wed Oct 23 07:48:39 2013

arforkd version 7.1.00 Patch 006 200811280530

Wed Oct 23 07:48:39 2013 Arforkd: Opening log file in append mode.

<END OF LOG FILE> Wed Oct 23 07:48:39 2013 Awaiting record marker.

<END OF LOG FILE> Wed Oct 23 07:49:25 2013 Received record marker.

<END OF LOG FILE> Wed Oct 23 07:49:25 2013 Arforkd: Opening log file in append 
mode.

<END OF LOG FILE> Wed Oct 23 07:49:25 2013 Awaiting record marker.

<END OF LOG FILE> Wed Oct 23 07:52:00 2013 Received record marker.

<END OF LOG FILE> Wed Oct 23 07:52:00 2013 Spawning child, shell "", command 
"/abc/def/ghi/ksh shellscript.ksh".

<END OF LOG FILE> Wed Oct 23 07:52:00 2013 Spawned "/abc/def/ghi/ksh 
shellscript.ksh" as pid 835716.

<END OF LOG FILE> Wed Oct 23 07:52:00 2013 Awaiting record marker.

<END OF LOG FILE> Wed Oct 23 07:52:00 2013 process id 835716 has exited with 
status 0x7f.

<END OF LOG FILE>



The first line of the script does read #! /usr/bin/ksh. However when we tried 
to run the script directly from the server we had to do two things:

*         First, we had to get down to the ghi directory. We were not able to 
put in the full path and execute.

*         Second, the script would not run on the server without adding the ksh 
in front of the file name.



Does that help? I am thinking for some reason Remedy is getting to the ghi 
directory.



Thoughts?



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"



-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Grooms, Frederick W
Sent: Wednesday, October 23, 2013 9:43 AM
To: [email protected]
Subject: Re: Execute shell script



Does it even show up in your arfork.log ?



It looks like you are telling it to run ksh and have it run the script.   Do 
you need to tell it to run ksh?   Our runprocess commands on the server 
(granted on Linux, but I remember on Solaris an HPux were the same) just call 
the script and have in the first line of the script   #! /usr/bin/ksh



Fred



-----Original Message-----

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Nall, Roger

Sent: Wednesday, October 23, 2013 9:31 AM

To: [email protected]<mailto:[email protected]>

Subject: Execute shell script



**

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"



_______________________________________________________________________________

UNSUBSCRIBE or access ARSlist Archives at 
www.arslist.org<http://www.arslist.org> "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"

Reply via email to