Re: Xwin shutdown command line option

2004-09-27 Thread Tim Hubberstey
--- Vijay Kiran Kamuju wrote: > Hi > > is there a way to shutdown the Xserver from command line > > rather than using ps and checking for pid of XWin and using kill -9 > > if u can provide that option from command line it would be gr8 > > when XWin is started i have to go to the tray icon and

RE: Xwin shutdown command line option

2004-09-23 Thread Phil Betts
Igor Pechtchanski wrote: > This only works if the "sysvinit" package is installed, and it will > kill *all* XWin processes, which is not what the OP wanted. Of course you're right about what it does, but the OP did say: > rather than using ps and checking for pid of XWin and using kill -9 > if u

RE: Xwin shutdown command line option

2004-09-22 Thread Alexander Gottwald
On Wed, 22 Sep 2004, Igor Pechtchanski wrote: > FWIW, it might be better to add the capability to XWin.exe to be queried > about which DISPLAY it's serving (via IPC of some sort). That way, one > could write a small routine that iterates over all the XWin processes and > sends a signal to the one

RE: Xwin shutdown command line option

2004-09-22 Thread Igor Pechtchanski
On Wed, 22 Sep 2004, Phil Betts wrote: > Alexander Gottwald wrote: > > On Wed, 22 Sep 2004, Vijay Kiran Kamuju wrote: > > > >> Hi > >> > >> is there a way to shutdown the Xserver from command line > > > > No. > > This should work: > > kill -9 `pidof /usr/X11R6/bin/XWin` > > Note that case is impor

Re: Xwin shutdown command line option

2004-09-22 Thread Alexander Gottwald
On Wed, 22 Sep 2004, Vijay Kiran Kamuju wrote: > I think the Cygwin/X server implementation for shutting down the xserver > > ie, code using the system tray->exit > > can be encapsulated in -stop/-terminate > > like > > if(strcmp(args[#no],"-terminate") > { > #ifdef WIN32 > //code using

Re: Xwin shutdown command line option

2004-09-22 Thread Vijay Kiran Kamuju
I think the Cygwin/X server implementation for shutting down the xserver ie, code using the system tray->exit can be encapsulated in -stop/-terminate like if(strcmp(args[#no],"-terminate") { #ifdef WIN32 //code using the system tray->exit #endif } On Wed, 22 Sep 2004 09:53:35 +0200 (ME

RE: Xwin shutdown command line option

2004-09-22 Thread Phil Betts
Alexander Gottwald wrote: > On Wed, 22 Sep 2004, Vijay Kiran Kamuju wrote: > >> Hi >> >> is there a way to shutdown the Xserver from command line > > No. This should work: kill -9 `pidof /usr/X11R6/bin/XWin` Note that case is important here. It might be better to use a different signal, SIGH

Re: Xwin shutdown command line option

2004-09-22 Thread Alexander Gottwald
On Wed, 22 Sep 2004, Vijay Kiran Kamuju wrote: > Hi > > is there a way to shutdown the Xserver from command line No. > rather than using ps and checking for pid of XWin and using kill -9 I'm afraid this seems to be the best option for killing the xserver. > if u can provide that option from