[foxboro] Getting logical name in a shell script

Content-Type: text/plain;
        charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Hi list,

=20

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?

=20

#!/bin/sh

LOCALHOST=3D`hostname`

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

echo "$LOGICALNAME"

=20

=20

=20

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

=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
 

Other related posts: