Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: ibug on February 03, 2012, 10:31:18 PM

Title: ctrl+alt+del error
Post by: ibug on February 03, 2012, 10:31:18 PM
under TC-4.2.1 under x
 sometimes when run many things
 ctrl+alt+del stop working
 even if all GUI's close it do not work

so is this command to exit Xvesa server good
#################
kill `ps | grep Xvesa | cut -f 1 -d " "`
#################
or it can damage something

which command is executed under x
and under text mode if ctrl+alt+del is hit
Title: Re: ctrl+alt+del error
Post by: Rich on February 03, 2012, 11:06:51 PM
Hi ibug
Quote
kill `ps | grep Xvesa | cut -f 1 -d " "`
The PID returned by  ps  may or may not contain a leading blank so that command is not reliable.
This is probably a better choice:
Code: [Select]
kill `ps | grep Xvesa | grep -v grep | cut -c1-5`No, it will not damage anything.
Title: Re: ctrl+alt+del error
Post by: hiro on February 04, 2012, 05:34:14 AM
use kill `ps|awk '/Xvesa/ && !/awk/ {print $1}'`

also look in the file /etc/inittab