Re: [foxboro] Getting logical name in a shell script

My apologies, here is the detail.

What I need to get is the name of the pan file in /usr/fox/alarms because I 
have to know if the local station (51 series) has or not has alarm panels.

The name of this file is the logical name plus AApan in WP's stations but in 
AW's boxes the logical name is not the letterbug of the station (at least in my 
system).

For example, I have one AW box with two alarm panels and the name of the pan 
file is 00WA02AApan where 00AW02 is his letterbug.

Regards,
 
YPF Ignacio Queirolo
Control Avanzado
Complejo Industrial Ensenada
tel.: 54 221 429-8400 ext. 26481        

-----Mensaje original-----
De: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] En 
nombre de Johnson, Alex P (IPS)
Enviado el: Miércoles, 14 de Enero de 2009 17:30
Para: foxboro@xxxxxxxxxxxxx
Asunto: Re: [foxboro] Getting logical name in a shell script

The logical name of what?

You can pass the logical name of the DM/FV launching a program - $DMNAME
- as an argument when using the applic or run commands.


You can use:

MY_NAME=`uname -n`

To get the station litterbug of the machine you are using. This is a
logical name for some purposes.


You can use this name to find certain related logical names by 'grep'ing
/usr/fox/sp/sldb.


Hope this helps.


Regards,
 
Alex Johnson
Invensys Process Systems
10900 Equity Drive
Houston, TX 77041
713 329 8472 (desk)
713 329 1600 (operator)
713 329 1944 (SSC Fax)
713 329 1700 (Central Fax)
alex.johnson@xxxxxxxxxxxxxxxx

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of QUEIROLO OLIVERA, IGNACIO ESTEBAN
Sent: Wednesday, January 14, 2009 11:27 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Getting logical name in a shell script

Hi list,

I need to obtain the logical name in a shell script. This is what I get
after tried several things. Is there somebody with a simplest solution?

#!/bin/sh
LOCALHOST=3D`hostname`
LOGICALNAME=3D`grep "MSGLN" /usr/fox/sp/IIF.prm | grep "$LOCALHOST" | =
awk
'{print $6}'`
echo "$LOGICALNAME"

YPF Ignacio Queirolo
Control Avanzado
Complejo Industrial Ensenada
tel.: 54 221 429-8400 ext. 26481=20


_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 


* Confidentiality Notice:
This e-mail and any associated files are intended solely for the individual or 
entity to whom they are addressed. Please do not copy it or use it for any 
purposes, or disclose its contents to any other person. Further, this e-mail 
and any associated files may be confidential and further may be legally 
privileged. This email is from the Invensys Process Systems business unit of 
Invensys plc which is a company registered in England and Wales with its 
registered office at Portland House, Bressenden Place, London, SW1E 5BF 
(Registered number 166023).  For a list of European legal entities within the 
Invensys Process Systems business group, please click here 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

If you have received this e-mail in error, you are on notice of its status. 
Please notify us immediately by reply e-mail and then delete this message from 
your system. Thank you for your co-operation. You may contact our Helpdesk on 
+44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx This e-mail 
and any attachments thereto may be subject to the terms of any agreements 
between Invensys (and/or its subsidiaries and affiliates) and the recipient 
(and/or its subsidiaries and affiliates).


 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: