Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How to kill a suspended process?

How to kill a suspended process?
Thread Tools
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Feb 25, 2003, 12:44 PM
 
How do I kill a process I suspended (with ctrl-z) in tcsh? I tried

sudo kill ###

but that didn't work. I can't logout cause of the suspended process.

Be a traveler, not a tourist
     
Forum Regular
Join Date: Dec 2000
Location: Montreal, Quebec, Canada
Status: Offline
Reply With Quote
Feb 25, 2003, 01:34 PM
 
If you do a kill -KILL ### it should work, btw you can go back in a suspended process with the fg command or put it in backgroung with the bg command
     
EnVoy  (op)
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Feb 25, 2003, 02:02 PM
 
Thanks BigMac2

It worked...

Be a traveler, not a tourist
     
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Feb 25, 2003, 05:14 PM
 
It's probably better to do a 'kill -TERM' than a 'kill -KILL', but anyway...FYI, you can also specify the job number in a kill, ex:

% touch foo
% touch bar
% tail -f foo
^Z
Suspended
% tail -f bar
^Z
Suspended
% jobs
[1] - Suspended tail -f foo
[2] + Suspended tail -f bar
% kill %1
% jobs
[1] Terminated tail -f foo
[2] + Suspended tail -f bar
% jobs
[2] + Suspended tail -f bar
%
----------------
----------------
Also, you can just logout once more after the warning and it'll let you log out w/ suspended jobs:

% tail -f foo
^Z
Suspended
% logout
There are suspended jobs.
% logout
(disconnected)
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Feb 25, 2003, 11:00 PM
 
kill %%
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 07:31 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2