6 Dec
2001
6 Dec
'01
20:53
Jesse Marlin writes:
Raúl Gutiérrez Segalés writes:
I have to leave this machine in about 20 minutes (max.) and my X-Session is open cause I am downloading some files that *should* finish in 15 minutes... How can I add a job to cron to make it kill my X-Session and my bash-login at tty2?
you could do this in a shell:
$ sleep 900; killall X
or:
$ sleep 900; kill <the X pid>
xdm ought to restart X after you kill it.
Forgot to mention that you must be root to kill X.