Is this is a Run Process action or a Set Fields action in the Active Link?
A Run Process action won't have $PROCESS$ (it would just be the @@.... to make it run on the server. A Set Fields action uses the $PROCESS$ to return something to the active link. Fred From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Ramey, Anne Sent: Thursday, April 16, 2009 2:09 PM To: [email protected] Subject: Re: run process issue ** I tried this, and still get "The system cannot find the file specified." Now my command is: $PROCESS$ @@:/opt/ar/remedy/bin/logreconstart.sh "$USER$" "$colJobName$" "$TIMESTAMP$" and the script is just what you suggested: #!/bin/sh echo $1 $2 $3 >> /opt/ar/remedy/cmdb/Logs/startrecon.log And it is in place with execute permissions. ??? Anne Ramey From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Lyle Taylor Sent: Thursday, April 16, 2009 2:51 PM To: [email protected] Subject: Re: run process issue ** What if you add the full path to echo in the command: $PROCESS$ @@:/bin/echo "$USER$" "$colJobName$" "$TIMESTAMP$" >> startrecon.log However, I suspect that that won't work either, because ">>" is a shell directive and will get interpreted as an argument to echo rather than telling the shell what to do with the output of the echo command. You might be better off writing a little shell script that take three command line arguments and effectively has this command in it. Something like this: #!/bin/sh echo $1 $2 $3 >> /path/to/startrecon.log Then your run process action would look like this: $PROCESS$ @@:/path/to/scrip "$USER$" "$colJobName$" "$TIMESTAMP$" Good luck. Lyle From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Ramey, Anne Sent: Thursday, April 16, 2009 12:42 PM To: [email protected] Subject: run process issue ** I'm having an issue with a run-process command from an active link: $PROCESS$ @@:echo "$USER$" "$colJobName$" "$TIMESTAMP$" >> startrecon.log or $PROCESS$ echo "$USER$" "$colJobName$" "$TIMESTAMP$" >> startrecon.log I get a "system cannot find file specified" error. This command from the command line creates the file if it doesn't exist. That's what I want. I've also passed the entire path with no luck. I've also tried specifying the full path to a file that does exist. What am I doing wrong? ARS 7.0, Linux RHEL 4 Anne Ramey _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

