[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Running 'xosview' with XDM



On Mon, 1 Feb 1999, Cameron Simpson wrote:

> Indeed. But _don't_ use killall - you can easily inadvertantly nail
> things you didn't want nailed (especially running as root, but even as
> an ordinary user if you have multiple sessions). Stuff the pid into a
> file and kill just that pid later:
> 	/usr/X11R6/bin/xosview -geometry 320x200-0-0 -int -title "System Load Statistics" &
> 	echo $! >/var/run/xosvPid.$DISPLAY
> and in GiveConsole
> 	kill `cat /var/run/xosvPid.$DISPLAY`
> 	rm /var/run/xosvPid.$DISPLAY
> 
> which scales to multiple DISPLAYs and kills very accurately.

Exactly...that was a concern of mine.  Hmmm...my xosview that I just
loaded up 2 minutes ago was just killed 'cause somebody else logged in?
;-)

Thanks for this great hack.  I had thought about something similar but
your multiple display idea rocks...

--------------< LINUX: The choice of a GNU generation. >--------------
Steve Frampton  <3srf qlink queensu ca>  http://qlink.queensu.ca/~3srf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]