In TCL you can use the global variable $env (array) to access all environment variables.
 
fran�ais :
Vous pouvez accedez aux variables d'environnement avec TCL � partir de la variable globale $env
Il s'agit d'un tableau qui contient toutes les variables d'environnement.
 
 
Par exemple :
global env
set mavariable $env(PATH)
puts stdout "Le contenu de la variable d'environnement PATH est : \n $mavariable"
 
 
----------------------------------------------------------------
Olivier Gayte
Veremes
http://www.veremes.com/
42 av. des Jardins
66240 St Esteve
France
t�l +33 (0)4-68-38-65-27
mobile +33 (0)6-60-49-83-81
fax +33 (0)4-26-68-98-35
[EMAIL PROTECTED]
----------------------------------------------------------------
----- Original Message -----
Sent: Wednesday, June 15, 2005 6:34 AM
Subject: R�p. : [fme] Re: TLCaller and variable of environment

It's OK
Thank you
Merci !
 
PS : Peux t'on poser les questions en Francais ?
 
 
Pierre-Yves JOUBERT
Communaut� urbaine de Lyon
DSIT/Service informatique/MEPA
20, rue du lac
69399 Lyon Cedex 03

>>> [EMAIL PROTECTED] 14/06/2005 18:44 >>>
You can access an environmental variable as a Macro in FME using
'squiggly' brackets - eg ${FME_MF_DIR} or ${ORACLE_HOME}

I'm not sure if you can do that directly in a TCL script, but you
could use an AttributeCreator to create an attribute from the Macro
(put the macro in the right hand field in the transformer settings
instead of a value) then use that in the TCL

J'esp�re que ceci r�pond � votre question.

Mark

Mark Ireland, Product Support Engineer
Safe Software Inc. Surrey, BC, CANADA
[EMAIL PROTECTED] http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access

--- In [email protected], "pyjoubert" <[EMAIL PROTECTED]> wrote:
> Hi,
> I would like to position a variable of environment under Windows and
> read the value of this variable of environment in TCL by using TCLCaller
>
> How to make ?
>
> Thank you




Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team.  Visit www.safe.com/services for details.
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/





Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team.  Visit www.safe.com/services for details.



Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team.  Visit www.safe.com/services for details.



Yahoo! Groups Links

Reply via email to