Solved

set priority at point of scrip execution at command prompt

Posted on 2004-09-02
3
178 Views
Last Modified: 2013-12-15
i have a script that indexes a large amount of data, if let to run it would consume 90% of the computers CPU resources.

I want to run this command in the background ... it is a perl script

Normally i execute at command line ./thescript.pl

I want to execute the process at low priority so it will run in the background.


0
Comment
Question by:zubinnt
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 11966414
To run the jobe at a lower than normal priority you can use 'nice -n 15 ./thescript.pl'. See 'man nice' for details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question