Solved

set priority at point of scrip execution at command prompt

Posted on 2004-09-02
3
173 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now