Re: Documentation The document for all of the DM variables and commands is Display Commands - B0193DF. You may already know that, but just in case. Re: Determining FV or DM I'm not aware of a way to tell a DM or FV apart using DM Commands or any other mechanism. = Re: Getting the Environment name The DM variable ENV contains the name of the current environment. You can get it into a script using: /usr/local/pref -<dmName> ENV I don't use the C-shell, I use the Bourne shell. In that shell, the syntax would be: MY_ENV=3D`/usr/local/pref -<dmName> ENV` Regards, Alex Johnson Invensys Systems, Inc. 10900 Equity Drive Houston, TX 77041 713.329.8472 (voice) 713.329.1700 (fax) 713.329.1600 (switchboard) alex.johnson@xxxxxxxxxxxxxxxx -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Ghiglione, Alessandro Sent: Thursday, July 12, 2007 10:07 AM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] Env variable from C-shell scripts Hi to everybody, = This is my first question: It's a real partecipated forum, where I learnt each day a little bit more! My question is: from C-shell scripts, I need to know the content of some environment variable on a specific DMNAME. I'm curious to know, by querying variables: 1) if a specified DMNAME uses FoxView or DisplayManager -we adopt both on the same station-. 2) the name of current env provided by FV bottom line -without the directory path-. I looked for all documented resources; I got some results at the cost of embarassing tricks.... Regards, Alessandro Ghiglione Senior Application Engineer Infineum Italia s.r.l. Strada di Scorrimento,2 17047 Vado Ligure (SV) - Italia * +39.019.2150.277 = mob. +39.3484535196 = * +39.019.2150.326 * mailto:alessandro.ghiglione@xxxxxxxxxxxx = = = _______________________________________________________________________ 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=3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave = Confidentiality Notice: The information contained in this electronic message and any attachment(s) = to this message are intended for the exclusive use of the recipient(s) and = may contain confidential, privileged or proprietary information. If you are= not the intended recipient, please notify the sender immediately, delete a= ll copies of this message and any attachment(s). Any other use of the E-Mai= l by you is prohibited. _______________________________________________________________________ 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