The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 07:33 AM
Stopping A process gopsman Shell Programming and Scripting 4 12-05-2007 09:37 AM
How to create a dummy process of a process already running? shambhu UNIX for Advanced & Expert Users 3 08-31-2007 10:22 AM
I can't resume a process after stopping it! Nene Shell Programming and Scripting 0 08-09-2006 01:37 PM
Stopping multiple process on AIX soulfactory2002 AIX 3 05-20-2005 01:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-08-2008
srilakshmi srilakshmi is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 2
stopping running process

hi all,
I am using red hat AS 4 linux enterprise,i need to run my application such that while its running no other process shuld run all the remaining process should be suspended ,i need to use whole of the process only for that application to run ,can anyone suggest me how to do this.

thanks u all,
lakshmi
  #2 (permalink)  
Old 08-12-2008
redoubtable redoubtable is offline
Registered User
  
 

Join Date: Aug 2008
Location: Portugal
Posts: 242
That's a bit extreme. Why not just reschedule your app to maximum priority?
Try running your app like:
Code:
nice -n -20 youapp
Or if it's already running, use renice.

To kill every process do
Code:
kill -9 -1
To STOP every process you have to send a SIGSTOP. Although that could lead to unstable behavior for some apps.
  #3 (permalink)  
Old 08-12-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
You cannot do that safely. Some filesystems have daemons and will not work if the daemon is stopped, for example.

In general do not stop all processes, period. redoubtable gave you good advice. Run your app at higher priority. What the heck are you trying to do?
  #4 (permalink)  
Old 08-13-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
I think on one hand, he's trying to make sure that the application will have enough resources to run, and on the other hand, no other processes would interfere his application's job. But, if that's the case, just stop unused daemons, like - you don't need sendmail running, disable it, you don't need smart daemon, you don't need beagle, hwscanner, etc, etc - disable them. Making sure no other processes is messing around with yours - consider jailed environment, chroot, etc.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 05:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0