Re: [foxboro] check C:B existence
- From: "Johnson, Alex (Foxboro)" <ajohnson@xxxxxxxxxxx>
- To: foxboro@xxxxxxxxxxxxx
- Date: Fri, 16 May 2003 12:28:40 -0400
#!/bin/sh
CB=$1
/opt/fox/bin/tools/omgetimp $CB.NAME | grep 'omget: object' >/dev/null 2>&1
if [ $? = 0 ]
then
echo "Block $CB does not exist"
exit 1
fi
echo "Block $CB exists"
exit 0
That should do it. Remembrer that it takes 12 seconds for the omget program
to timeout on missing C:Bs.
Regards,
Alex Johnson
Invensys Systems, Inc.
10707 Haddington
Houston, TX 77043
713.722.2859 (office)
713.722.2700 (switchboard)
713.932.0222 (fax)
ajohnson@xxxxxxxxxxx
For the latest information on ArchestrA, go to
www.invensys.com/Archestra.html.
-----Original Message-----
From: Andres Chianale M. (Inforsa) [mailto:achianale@xxxxxxxxxxxxxxx]
Sent: Friday, May 16, 2003 5:16 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] check C:B existence
Hi list,
How can I check on a dm script if a comp:block exists?
Thanks!
_______________________________________________________________________
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
- Follow-Ups:
- Re: [foxboro] check C:B existence
- From: Sascha Wildner
Other related posts:
- » Re: [foxboro] check C:B existence
- » Re: [foxboro] check C:B existence
- Re: [foxboro] check C:B existence
- From: Sascha Wildner