[Tutor] Stopping processes on Solaris-2.5.1

sessile@in-gen.net sessile@in-gen.net
Sat, 11 Mar 2000 14:26:24 -0500


At 07:06 PM 3/11/2000 +0200, Moshe Zadka wrote:
>On Sat, 11 Mar 2000 sessile@in-gen.net wrote:
>
>> I wrote a little program using Python-1.5.2 to scan for
>> users other than myself (or root) being logged into my
>> machine but I haven't figured out how to eliminate any
>> of the offending processes.  The 'kill' command doesn't
>> want to stop processes owned by other users so I'm stuck
>> manually clicking on the windows to shut them down.
>> 
>> Any advice on how to do automate this through Python?
>
>Automate what? Python won't let you do anything C won't let you.
>As a solution to your problems, learn to use the "xhost" program. X's
>security mechanisms are shameful, but they do serve to keep off the kids.
>--
>Moshe Zadka <mzadka@geocities.com>. 
>http://www.oreilly.com/news/prescod_0300.html
>

My original, somewhat impractical thought had been to automate
the keystrokes required to manually close the unwanted program.
The Python code would run in the background waiting for an X
application to be started on my machine by one of the pranksters
and then close it down.  Dangerous if I make a mistake and start
shutting down the wrong windows!

My thanks to those who responded so quickly.  Several people
pointed me at the "xhost" program and I agree that this is the
best solution.