WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ctrl+alt+del error  (Read 1999 times)

Offline ibug

  • Jr. Member
  • **
  • Posts: 76
ctrl+alt+del error
« 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: ctrl+alt+del error
« Reply #1 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.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: ctrl+alt+del error
« Reply #2 on: February 04, 2012, 05:34:14 AM »
use kill `ps|awk '/Xvesa/ && !/awk/ {print $1}'`

also look in the file /etc/inittab
« Last Edit: February 04, 2012, 05:37:17 AM by hiro »