[foxboro] Getting logical name in a shell script
- From: "QUEIROLO OLIVERA, IGNACIO ESTEBAN" <iqueiroloo@xxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Wed, 14 Jan 2009 15:26:45 -0200
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:
- » [foxboro] Getting logical name in a shell script - QUEIROLO OLIVERA, IGNACIO ESTEBAN