Thank you Fred.  Your method worked exactly how I wanted.
 
Eric

  _____  

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Grooms, Frederick W
Sent: Thursday, December 06, 2007 1:19 PM
To: arslist@ARSLIST.ORG
Subject: Re: Syntax Problems for a Run Process within an Escalation


** 
An Escalation already runs on the server so the @@: is not needed
 
Echo is an internal command to the shell so you may need to do:
    $SHELL -c "echo foo > /RMD/home/flag"
 
Fred

  _____  

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Cleereman (IT)
Sent: Thursday, December 06, 2007 12:00 PM
To: arslist@ARSLIST.ORG
Subject: Syntax Problems for a Run Process within an Escalation


** 

Hi All, 

I am trying to create a file on our ARS server, where the file's content
is equal to foo.  I am trying to do this using a run process from within
an escalation.  This is the command line for this action:

        @@:echo foo > /RMD/home/flag 

When the escalation fires, /RMD/home/flag is created, but the file is
zero bytes in length. 

If I try running the following command directly from a Bourne shell on
the server, it creates a file containing foo just fine:

        echo foo > /RMD/home/flag 

For the run process, I have tried escaping the greater than sign with a
leading backslash, as well as trying various things with quotes, but
can't seem to get this to work.  The help file with the Admin tool
mentions that special characters within run processes may have
unexpected results, but does not mention what to do about this.

Does anyone know how this has to be formatted in order to make it work? 

Eric Cleereman 
ARS 6.3 
AIX 5.2  

 

__20060125_______________________This posting was submitted with HTML in
it___ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to