[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    How to setup remote shutdown?
From:       Sascha Cunz <sascha.cunz () tiscali ! de>
Date:       2005-10-01 11:35:29
Message-ID: 200510011335.36868.sascha.cunz () tiscali ! de
[Download RAW message or body]

Hi,
i'm having 1 big PC and 2 slower notebooks. I've setup kdm on the PC to use 
XDMCP and am using a command like "X :1 vt8 -query $HOST" to start X.

My problem is now, that the "signoff" dialog of KDM gives me the option 
"shutdown" and "reboot", but this affect the machine where kdm is running 
one, not the one that connected there (one of the notebooks in that case).
Which is of course not exactly what i want. What i want is, that the KDM 
running on the big PC will shutdown/reboot the notebook that made the 
connection.

I've found a section called [shutdown] in kdmrc where i can name programs to 
run for shutdown and reboot. But i've no clue how i can write a program that 
figures out from which host the X connection came from. If i new where the 
connections was from, i think, i could easily deploy any RPC mechanism like 
rsh or some dcop thing to shut down the remote. But where can i get that 
information from?

Any pointer?

Thanks in advance
Cheers Sascha
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic