Mailing List Archive

Fetch lock information from script
Hello,
I am using conserver 8.1.14 and a script to reset systems (by taking
away their power). To make sure no one can reset a system someone else
is currently using I'd like to fetch the information whether the
console of the system is locked by conserver. Is there any way to get
this information for my script?

Thanks for your help!
Maik

--
Maik Hentsche | Operation System Integrator
mailto: maik.hentsche@amd.com | Phone: 84918
jabber: mhentsc3@osrc.amd.com | Cube : 2.4.023
Re: Fetch lock information from script [ In reply to ]
On Tue, Mar 06, 2007 at 12:18:39PM +0100, Maik Hentsche wrote:
> console of the system is locked by conserver. Is there any way to get
> this information for my script?

why not parse the output of 'console -w' ?
Re: Fetch lock information from script [ In reply to ]
"Fabien Wernli" <wernli@in2p3.fr> wrote:

> why not parse the output of 'console -w' ?

That's what I'm looking for. Thank you very much.

so long
Maik

--
Maik Hentsche | Operation System Integrator
mailto: maik.hentsche@amd.com | Phone: 84918
jabber: mhentsc3@osrc.amd.com | Cube : 2.4.023
Re: Fetch lock information from script [ In reply to ]
On Tue, Mar 06, 2007 at 02:36:25PM +0100, Fabien Wernli wrote:
> why not parse the output of 'console -w' ?

'console -i' was created to be more "parsable" than -w, -u, etc. it's
certainly not perfect (and probably not as simple as the -w output in
this case) but there if you need it.

Bryan
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users