Try this: #!/bin/sh mkdir -p /opt/logs exec >/opt/logs/`basename $0` 2>&1 set -x CBP=$1 VALUE=`/opt/fox/bin/tools/omgetimp $CBP | awk '{ printf $3 }'` if [ $VALUE. = TRUE. ] then # Do whatever /opt/fox/bin/tools/omsetimp -b F $CBP else # Do something else /opt/fox/bin/tools/omsetimp -b T $CBP fi Use omsetimp and omgetimp to eliminate broadcasts, but if you do this a lot you may need to increase the size of your OM_IMPORT_TABLE. You can monitor it with /usr/local/show_params. BTW, I wrote this while on the phone. There may be some errors. 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: Brian Bates [mailto:batesb@xxxxxxxxxxx] Sent: Tuesday, April 08, 2003 1:34 PM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] omget Hi all. Is possible to use the output from OMGET within a shell script? I want to use OMGET to check a boolean output of a CALC block , and if it is true, then use OMSET to set a real input. -Thanks in advance. Brian Bates Bowater Inc. Thunder Bay, ON _______________________________________________________________________ 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: //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: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave