nv-l
[Top] [All Lists]

Re: Réf. : [NV-L] Global Variable Names

To: nv-l@lists.tivoli.com
Subject: Re: Réf. : [NV-L] Global Variable Names
From: "Gavin Newman" <NEWMANGJ@banksa.com.au>
Date: Mon, 07 Aug 2000 09:21:01 +0930
Alexis

Does your trick refer to doing it in a shell script?? What I want to do is 
establish the variable in the actual rule - is in the Set Global Variable node 
I want to create a variable that takes the name of the device that the event 
refers to and then assign a value for it.

Cheers - Gavin

>>> <alexis.henry@bnpparibas.com> 04/08/2000 16:58:06 >>>

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.
_____________________________________________________________________________________________________________________________________



**********************************************************************
   *****   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.
Bank SA is not liable for the proper and complete transmission
of the information contained in this communication, nor for any


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Réf. : [NV-L] Global Variable Names, Gavin Newman <=

Archive operated by Skills 1st Ltd

See also: The NetView Web