In a filter a simple Set Fields with PROCESS action can get an environment 
variable from the server

On Windows
    $PROCESS$ cmd /c echo %VARIABLE%
On Unix/Linux
    $PROCESS$ echo $VARIABLE


i.e.  To get the TEMP location
In a set fields action set a character field to
    $PROCESS$ cmd /c echo %TEMP%

NOTE:  You may then have to do a replace on the field to remove the return at 
the end (Some versions of *nix will allow you to do  echo –n $VARIABLE  which 
will output without the trailing newline)

Fred

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of LJ LongWing
Sent: Wednesday, March 25, 2015 2:14 PM
To: arslist@ARSLIST.ORG
Subject: Re: Is it possible to pass data from a Change Request to a System 
variable?

**
Chris,
Write a batch file/perl script/your favorite language that will get the 
variable and it's value and put it in the output of the script.  Put the script 
on all of your environments.  Create a filter that does a set-field run-process 
that populates a field with the output from that script, then do whatever you 
want with the output :)


On Wed, Mar 25, 2015 at 1:03 PM, Danaceau, Chris  wrote:
**
I want to use the environment (when Dev) to bypass certain tasks.  Thought 
maybe a system variable would do this, but I can’t see how to populate it from 
data on the parent Change.    Not much guidance for this in the documentation.  
 I can map it INTO a task, but cannot figure out how to populated it.

--
Thank You,

Chris Danaceau
FINRA
240-386-6728<tel:240-386-6728> (desk)
301-367-8949<tel:301-367-8949> (cell)
Remedy FAQ<http://wiki.finra.org/confluence/display/TechOpsCtr/Remedy+FAQ>

Confidentiality Notice:: This email, including attachments, may include 
non-public, proprietary, confidential or legally privileged information. If you 
are not an intended recipient or an authorized agent of an intended recipient, 
you are hereby notified that any dissemination, distribution or copying of the 
information contained in or transmitted with this e-mail is unauthorized and 
strictly prohibited. If you have received this email in error, please notify 
the sender by replying to this message and permanently delete this e-mail, its 
attachments, and any copies of it immediately. You should not retain, copy or 
use this e-mail or any attachment for any purpose, nor disclose all or any part 
of the contents to any other person. Thank you.




_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to