On Monday 04 July 2005 17:51, Sami POTIRCA wrote: > On Mon, 2005-07-04 at 17:26 +0300, Andrei-Florian Staicu wrote: > > Salut. > > > > Am acces root la un server, dar numai remote (adica nu am monitor si > > tastatura :D) > > Problema e ca, inainte sa scot tastatura, m-am logat pe niste tty-uri. > > Intrebarea este cum pot sa "imi dau" logoff? > > Slack 10.1. > > > > Merci. > > Nu neaparat cea mai eleganta solutie dar merge (cel putin la mine). Iti > omoara toate procesele ce sunt legate de tty1..tty6. Inclusiv agetty > (dar alea se repornesc, nu e o problema) > > > for i in `seq 1 6`; do for j in `ps -t tty$i -o pid=`; \ > do echo should kill $j; done; done
Sau fuser -k /dev/tty[1-6] in bash. Mihai -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://www.bitdefender.com/ --- Detalii despre listele noastre de mail: http://www.lug.ro/
