Re: [foxboro] how to execute a Cshell script in a AP from a display WP ?
- From: "Murray, Steve" <SMurray@xxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Wed, 29 Jan 2003 13:26:37 -0700
Hi,
That is a really useful script you have there!
This is what I did to make it work on my AW51B (FoxView 99.2.1, I/A
Release 6.1, legacy historian):
1. In my environment file I added the button "Msg"
Partial content of "/opt/fox/customer/SYS_ENGINEER.mbr"
dmcmd script
button -1 &File $ENV_DIR/file.mnu
button -1 &Msg /opt/asarco/prog/msgtest
*********************************************
2. I have the dmcmd script /opt/asarco/prog/msgtest (THE "&" MUST be used
for dmcmd applic)
dmcmd script
dmcmd applic /opt/asarco/prog/0test &
*********************************************
3. I have the script /opt/asarco/prog/0test
#!/bin/csh
cd /opt/asarco/prog
setenv PATH ${PATH}:/opt/informix/bin
setenv INFORMIXDIR /opt/informix
/opt/informix/bin/isql histcc > xxx << @
select * from sysmonmsg
order by msg_key;
@
tail -100 xxx> yyy
# lp -dLP01 yyy
**********************************************
I made slight changes to your script. I identified /bin/csh, added the
full path to isql, and my historian is histcc. I also am not printing this
but will display the file "yyy" in a FoxView scroll region so I can look at
the message log directly from FoxView.
Thanks for the great script idea! Let me know if you can't get this to
work on your system and I'll do some more testing.
Steve Murray
Asarco
-----Original Message-----
From: Mougeot, Thierry T SPM-SMUC
[mailto:Thierry.T.Mougeot@xxxxxxxxxxxxx]
Sent: Wednesday, January 29, 2003 01:26
To: list users IAS Foxboro (E-mail)
Subject: [foxboro] how to execute a Cshell script in a AP from a display
WP ?
Hi list ,=20
I'm looking for a display command to execute a script ( wrote with C =
shell )
in a AP from a WP display . I try with the command " dmcmd applic
/usr/prog/"script name" with the fonction " execute programm" , it's =
not
running.
the script in AP :
#csh!
cd /opt/fox/hstorian/bin
setenv PATH ${PATH}:/opt/informix/bin
setenv INFORMIXDIR /opt/informix
isql hist50 > xxx << @
select * from sysmonmsg
order by msg_key;
@
tail -100 xxx> yyy
lp -dLP01 yyy
I would be grateful if you could send me instructions .
MOUGEOT Thierry
Secteur SMUC Utilites Chimie=20
Shell P=E9trochimie M=E9diterran=E9e
BP 14, 13131 Berre l'=E9tang, Cedex, France
Tel: +33 4 42 74 57 03 Fax: 54 20
Email: Thierry.Mougeot@xxxxxxxxx
Internet: http://www.shell.com/chemicals
_______________________________________________________________________
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 e-mail and any files transmitted with it are the property of Americas
Mining Corporation and/or its affiliates, are confidential, and are intended
solely for the use of
the individual or entity to whom this e-mail is addressed. If you are not a
named recipient or otherwise have reason to believe that you have received this
message in error,
please notify the sender and delete this message immediately from your
computer. Any other use, retention, dissemination forwarding, printing or
copying of this e-mail is
strictly prohibited. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system into
which it is
received, and opened, it is the responsibility of the recipient to ensure that
it is virus free and no responsibility is accepted by Americas Mining
Corporation and/or its
affiliates for any loss or damage arising in any way from its use
This e-mail has been scanned and cleared by MailMarshal
www.marshalsoftware.com
*
_______________________________________________________________________
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
Other related posts: