»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-05-2004, 04:30 PM   #1 (permalink)
Registered User
 
eweruk's Avatar
 
Join Date: Oct 2001
Location: White Rock, Canada
Posts: 1,383
eweruk is on a distinguished road
Send a message via ICQ to eweruk Send a message via AIM to eweruk
How to kill a open shell?

Ok so I have an open shell to my Linux server and want to check the disk usage so I type df while not under root. It gets to some mounts and stalls, cannot ctrl-c or anything. I disconnect and try again under root, df but same problem. Now I have two shells stalled and cannot close.

How do I kill these sessions? Does disconnecting close the session, I though not.

HELP!

eweruk is offline   Reply With Quote
Old 03-05-2004, 04:48 PM   #2 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
You could try just killing the pid of the tty/terminal the user is logged in to.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old 03-05-2004, 05:04 PM   #3 (permalink)
Registered User
 
originel's Avatar
 
Join Date: Jun 2002
Location: Texas Tech
Posts: 1,538
originel is on a distinguished road
Send a message via AIM to originel
and of course there is ctl-alt-esc as well (i'm assuming you mean a command prompt window in x-windows).
originel is offline   Reply With Quote
Old 03-05-2004, 05:04 PM   #4 (permalink)
Registered User
 
eweruk's Avatar
 
Join Date: Oct 2001
Location: White Rock, Canada
Posts: 1,383
eweruk is on a distinguished road
Send a message via ICQ to eweruk Send a message via AIM to eweruk
when I do a ps -waux|grep df I get about 20 pid's, I see the ones under the user name.

what is the kill command?
eweruk is offline   Reply With Quote
Old 03-05-2004, 05:15 PM   #5 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
If memory serves then "who -u" should give you the pid of every interactive session running and then you can just do a "kill <pid>" on the relevant pid.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old 03-06-2004, 04:35 AM   #6 (permalink)
Registered User
 
Mead's Avatar
 
Join Date: Nov 2001
Location: Muskegon, MI
Posts: 579
Mead is on a distinguished road
But alt+ctrl+esc is way more fun to kill stuff with, pops up the little skull and crossbones curser and you just click on stuff to kill it.
Mead is offline   Reply With Quote
Old 03-06-2004, 06:22 AM   #7 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
Isn't alt-ctrl-esc KDE specific? It certainly doesn't work in fluxbox anyway. I don't see any mention that the machine is even running X, let alone the desktop environment but its still a handy thing to know.

Regards

ed

Last edited by SpookyEddy; 03-06-2004 at 06:29 AM.
SpookyEddy is offline   Reply With Quote
Old 03-06-2004, 07:10 AM   #8 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
have you tried CTRL Z?



(ctrl c is dos )
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 03-06-2004, 09:03 AM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: NC in the US
Posts: 3,732
Redwolf is on a distinguished road
Send a message via ICQ to Redwolf Send a message via AIM to Redwolf Send a message via Yahoo to Redwolf
ctrl c works in many Linux appsa as well. And I think you have to have Xkill installed to get teh skull-crossbones thing.
Redwolf is offline   Reply With Quote
Old 03-06-2004, 09:13 AM   #10 (permalink)
Registered User
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 3,253
jkrohn is on a distinguished road
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Quote:
Originally posted by vass0922
have you tried CTRL Z?



(ctrl c is dos )
Actually ctl-z *suspends* a process. After ctl-z bg to send it to the background, fg to bring it back to the forground.

ctl-c will interrupt process if it was launched from the cli. Neither has relevence to killing open shells though unless he is lauching shells from a shell.

Jkrohn
__________________
Jkrohn
jkrohn is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 03:12 PM.