The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Suspend Cron job temprory pankajkrmishra Shell Programming and Scripting 4 08-14-2006 05:18 AM
suspend/restart a process in shell script daneensign Shell Programming and Scripting 1 02-13-2006 09:43 PM
Suspend to write file ust UNIX for Advanced & Expert Users 3 12-13-2005 01:56 AM
suspend a process piou78 Shell Programming and Scripting 7 06-03-2005 06:08 AM
UNIX Process Suspend proton UNIX for Dummies Questions & Answers 3 02-13-2005 12:27 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-18-2008
Registered User
 

Join Date: Nov 2007
Posts: 22
suspend a process

I have a process running with a PID. I would like to suspend the process for some time so that other processes get the more CPU time.

I know I can use CTRL-Z if I have the terminal I launched the process from. However, I dont have the terminal (launched the job using nohup)

Many thanks in advance.
J.
Reply With Quote
Forum Sponsor
  #2  
Old 03-18-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
what os you running?

for solaris look at priocntl and nice.

i believe linux is nice as well... anyone??
Reply With Quote
  #3  
Old 03-18-2008
Registered User
 

Join Date: Nov 2007
Posts: 22
I am using Linux..but without any root permission. So I cannot used renice to change the nice value...

Any suggestions.
J.
Reply With Quote
  #4  
Old 03-18-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
can you sudo renice?
Reply With Quote
  #5  
Old 03-18-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Send it a SIGSTOP to suspend it. Then send it SIGCONT to make it resume.
Reply With Quote
  #6  
Old 03-18-2008
Registered User
 

Join Date: Nov 2007
Posts: 22
no..I am not in the sudo list
Reply With Quote
  #7  
Old 03-18-2008
Registered User
 

Join Date: Mar 2008
Location: Currently: PH , Previously UK, US, TR, DE, IE, JP
Posts: 15
'kill -stop %job'
or
'kill -stop $pid'

'kill -cont %job' - will restart it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0