nv-l
[Top] [All Lists]

Réf. : Global Variable Names

To: nv-l@lists.tivoli.com
Subject: Réf. : Global Variable Names
From: alexis.henry@bnpparibas.com
Date: Fri, 4 Aug 2000 09:28:06 +0200
Hi Gavin !

There is a trick to do so but it is quite a strange way to do it.
If i understand well you should do it this way:

echo $var | read $(echo $NVATTR_3).
(let assume that "var" is the data you want to set in what you named $$NVATTR_
3)


I explain: "read" is an Aix command that set a data with a stream comming from
<STDIN> wich name is the first argument in the command line.
Here i do $(echo $NVATTR_3) so the shell return "fred" because $NVATTR_3 is
"fred"

So:    echo $var | read $(echo $NVATTR_3)   ==>  echo $var | read fred
Then if you run "echo $fred" you will see the value  in "var".
The $fred data now exists.

Alexis Henry
Banque Nationale de Paris.







NEWMANGJ@stgeorge.com.au on 04/08/2000 04:31:22

Veuillez répondre à nv-l@tkg.com

Pour :    nv-l@tkg.com
cc :   (ccc : Alexis Henry/DOSI/BNP)
Objet :   [NV-L] Global Variable Names



_____________________________________________________________________________________________________________________________________

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l'intention exclusive de ses destinataires et sont confidentiels. Si vous 
recevez ce message par erreur, merci de le détruire et d'en avertir 
immédiatement l'expéditeur.

Toute utilisation de ce message non conforme à sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation 
expresse.

L'internet ne permettant pas d'assurer l'intégrité de ce message, BNP PARIBAS 
(et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans 
l'hypothèse où il aurait été modifié.
        
----------------------------------------------------------------------------------
This message and any attachments (the "message") are intended solely for the 
addressees and are confidential. If you receive this message in error, please 
delete it and immediately notify the sender.

Any use not in accord with its purpose, any dissemination or disclosure, either 
whole or partial, is prohibited except formal approval.

The internet can not guarantee the integrity of this message. BNP PARIBAS (and 
its subsidiaries) shall (will) not therefore be liable for the message if 
modified.
_____________________________________________________________________________________________________________________________________
Just a quickie

Does anyone know if a global variable can be named indirectly?

By this I mean that given a node name of "fred", the value of $NVATTR_3 would be
"fred", could you then use this indirectly by entering $$NVATTR_3 in the
variable name field in a Set Global Variable node to end up with a global
variable named "fred' to which you could then assign a value?

Cheers - Gavin



**********************************************************************
   *****   IMPORTANT INFORMATION    *****
This document should be read only by those persons to whom
it is addressed and its content is not intended for use by
any other persons. If you have received this message in
error, please notify us immediately. Please also destroy and
delete the message from your computer. Any unauthorised form
of reproduction of this message is strictly prohibited.
St.George is not liable for the proper and complete transmission
of the information contained in this communication, nor for any
delay in its receipt.
**********************************************************************
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l





<Prev in Thread] Current Thread [Next in Thread>
  • Réf. : Global Variable Names, alexis . henry <=

Archive operated by Skills 1st Ltd

See also: The NetView Web