On Wed, 05 Sep 2001, you wrote:
> Hi,
> 
> I have rotation support working with XFree86 including coordination of 
> display rotation and touch screen driver rotation.  That all is working 
> very well, but we of course need to exit X and restart it for the new 
> rotation to take effect.
> 
> This is fine for the initial deployment, but there is a requirement to have 
> a button that kicks off a script that will kill off X and then restart it.
> 
> I have the restarting working just fine, but wondered if there was a safe, 
> reliable way to kill X from a script?
> 
> Is there anything other than greping the output of ps, extracting the 
> process ID for X and passing that to kill? If not, is there an example 
> script somewhere that you could point me to?

I don't know the safe way

but the extracting id bit and killing it is a script called "killall"
hmm
except you have to worry about if theres multiple servers running :P

> 
> Thanks,
> Burt
> 
> 
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert
-- 
"I worry about my child and the Internet all the time, even though she's too
young to have logged on yet. Here's what I worry about. I worry that 10 or
15 years from now, she will come to me and say 'Daddy, where were you when
they took freedom of the press away from the Internet?'" --Mike Godwin
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to