Hi Andreas, You could check for a variable that exists in Foxview but not in Display Manager, like FVWHAT. In a simple shell script driven from a button on a graphic you can check to see if the variable is not null. If it is not null then it will be foxview. If it is null then it will be a display manager. I can not remember when the FVWHAT came in to existence, but it is there in Foxview 9.02 Sean #!/bin/sh # $1 is the Display Name i.e. $DMNAME type=3D`/usr/local/pref -$1 FVWHAT` if [ "$type" ] then echo "FV" else echo "DM" fi -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Weiss, Andreas Sent: Monday, 13 August 2007 7:52 PM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] scripting; How to differentiate between FV and DM? Hi, how is it possible to check which HMI (FV or DM) an Operator has been used to start a script by clicking on a button? All what the script knows is: - DMNAME - HOST The output should be: "FV" | "DM" An AW could provide both applications at the same time. Regards, Andreas =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 =20 foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave =20 =0A=0ANOTICE - This message and any attached files may contain informatio= n that is confidential and intended only for use by the intended recipien= t. If you are not the intended recipient or the person responsible for de= livering the message to the intended recipient, be advised that you have = received this message in error and that any dissemination, copying or use= of this message or attachment is strictly forbidden, as is the disclosur= e of the information therein. If you have received this message in error = please notify the sender immediately and delete the message. _______________________________________________________________________ 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