:S2AW01DMCMD :=3D "dmcmd run /opt/lts/script/run_model.sh "; The above line will execute the script /opt/lts/script/run_model.sh on host S2AW01. Be aware when using the above way of executing anything, it is not serialising the commands.=20 If two seq. blocks write at exactly the same time to :S2AW01DMCMD there is no way of knowing which line is going to be executed. With cpShell you need to set up a message group. In our case a line in seq. code would look like this: SENDMSG("/opt/lts/script/model_grade.sh ",ROUND(GRADE1)," &") TO MSGGR2; MSGGR2 needs to point to something. For us that's MSGGR2 =3D 2 MSGGR2 is now pointing to DEVICE GROUP 2 in the compound. Here is where you identify the name of the cpShell global variable. In our case that's LTS_MSG1. And cpShell is started from /etc/fox/user_apps.dat like this: /opt/foxind/cpShell/exe/cpShell -id LTS_MSG1 The nice thing about cpShell is that it is properly serialising the commands. Well, that's me done for the day. Cheers, Frits Schouten. NZSteel. -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Grumelart, Alain Sent: Wednesday, 24 October 2007 3:05 AM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] hlbl msglin RE: "Is there a way to kick off a script from a sequence block so that no message gets recorded to the OAJ?" Alex Johnson has this "cpShell" utility which allows just that. It runs on an AW and waits for commands from sequence blocks. You send it a shell command via either SENDCONF or SENDMSG. =3D This mechanism does not depend on any DM or Foxview instance. =3D Alain Grumelart Ing. Systems Integration & IT Invensys Systems Canada Inc. -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Lowell, Timothy Sent: Friday, October 19, 2007 10:40 PM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] hlbl msglin I have a follow-up question on this. We have a sequence block that kicks off a script file every 30 seconds which records the value of some important totalizers into a text file. The idea is, if the CP should fail and set the totalizers to zero, this sequence block will run upon the initialization of the CP and read the text file it has been writing to every 30 seconds and omset the totalizer values back to what they should be. This works well, but the problem is, the sequence code uses the :AW0101DMCMD call to kick off the script, and every time it does, this gets recorded to the OAJ. This means there are 2880 useless messages per day in the OAJ. Is there a way to kick off a script from a sequence block so that no message gets recorded to the OAJ? This script uses wp_applic to invoke the script, and I was wondering if using just applic would work better. Does anyone know? Tim ----- Original Message ----- From: foxboro-bounce@xxxxxxxxxxxxx <foxboro-bounce@xxxxxxxxxxxxx> To: foxboro@xxxxxxxxxxxxx <foxboro@xxxxxxxxxxxxx> Sent: Fri Oct 19 21:29:42 2007 Subject: Re: [foxboro] hlbl msglin If memory serves, the object is to have the Sequence block set the DM/FV variable "DMCMD" with the text of a display manager command. That variable can be accessed from outside the DM/FV by using a name which is the DM/FV name followed by the variable name "DMCMD". So, for FoxView name 05WP01, the variable is named 05WP01DMCMD. =3D In Sequence code an OM name is preceded by ":", so the statement to set it is: : 05WP01DMCMD :=3D3D "dmcmd msglin Hola" Be careful to remember that if the DM/FV instance isn't running, the Sequence block gets a -1 error (because the variable doesn't exist), also that it will fail the same way if the DM/FV station is dead or is rebooting, etc. There are also some nodebus conditions =3D which can also make the command fail, at least temporarily, so it is a good idea to have an error handler. William C Ricker FeedForward, Inc. -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Ron Schafer Sent: Friday, October 19, 2007 12:17 PM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] hlbl msglin =3D =3D =3D Does anyone know the command for hlbl (ind block) to send text to the message line? =3D Ronald G. Schafer Distrubuted Controls System Administrator White Birch Paper Bear Island L.L.C. Division 10026 Old Ridge Rd. Ashland Va. 23005 804-227-4034 Email: rschafer@xxxxxxxxxxxxxxxxxxxxxx =3D =3D =3D =3D =3D _______________________________________________________________________ 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 =3D foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D =3D =3D _______________________________________________________________________ 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 =3D foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D =3D =3D _______________________________________________________________________ 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 =3D foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D Confidentiality Notice: This e-mail and any associated files are intended solely for the individual=3D or entity to whom they are addressed. Please do not copy it or use it for =3D any purposes, or disclose its contents to any other person. Further, this e=3D -mail and any associated files may be confidential and further may be legal=3D ly privileged. This email is from the Invensys Process Systems business uni=3D t of Invensys plc which is a company registered in England and Wales with i=3D ts registered office at Portland House, Bressenden Place, London, SW1E 5BF =3D (Registered number 166023). For a list of European legal entities within t=3D he Invensys Process Systems business group, please click here http://www.in=3D vensys.com/legal/default.asp?top_nav_id=3D3D77&nav_id=3D3D80&prev_id=3D3D= 77. If you have received this e-mail in error, you are on notice of its status.=3D Please notify us immediately by reply e-mail and then delete this message =3D from your system. Thank you for your co-operation. You may contact our Help=3D desk on +44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx T=3D his e-mail and any attachments thereto may be subject to the terms of any a=3D greements between Invensys (and/or its subsidiaries and affiliates) and the=3D recipient (and/or its subsidiaries and affiliates). =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