Re: [foxboro] shut down DM from a script
- From: Brian Bates <batesb@xxxxxxxxxxx>
- To: foxboro@xxxxxxxxxxxxx
- Date: Wed, 28 Jul 2004 15:26:40 -0400
Terry.
Both DMCMD and dmcmd will work, - if you are logged in as root.
If you are logged in as a non-root user, it doesn't work either way.
This surprises me because by the looks of it, pref should be executable by
anybody, if I am reading this properly.
# ls -l /usr/local/pref
-rwxr-xr-x 1 root staff 7264 Jun 24 1998 /usr/local/pref
-Brian
"Deo, Terry"
<Terry.Deo@Infine To: foxboro@xxxxxxxxxxxxx
um.com> cc:
Sent by: Subject: Re: [foxboro] shut
down DM from a script
foxboro-bounce@fr
eelists.org
07/28/2004 03:08
PM
Please respond to
foxboro
Brian,
The DMCMD variable must be in caps. -- try using:
/usr/local/pref -DM0001 DMCMD "dmcmd dmexit"
Regards,
Terry
Terry J. Deo
Process Control Systems Engineer
Infineum USA, L.P.
Bayway Chemical Plant
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Brian Bates
Sent: Wednesday, July 28, 2004 2:27 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] shut down DM from a script
Hi all.
I want to shut down a DM from a shell script.
I tried the following, but it only works when run by root. I need it to
work with users other than root.
#!/bin/sh
/usr/local/pref -DM0001 dmcmd 'dmcmd dmexit'
Has anybody used the display manager command DMPID to give me the
process
id for the DM?.
If I could get that to work, I could kill the pid.
-Regards, Brian Bates
Bowater Inc.
Thunder Bay, ON
=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: http://www.freelists.org/list/foxboro
to subscribe: =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe: =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
=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
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 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
- Follow-Ups:
- Re: [foxboro] shut down DM from a script
- From: Jeremy Milum
Other related posts:
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- » Re: [foxboro] shut down DM from a script
- Re: [foxboro] shut down DM from a script
- From: Jeremy Milum