Solved

set priority at point of scrip execution at command prompt

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

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). …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 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

15 Experts available now in Live!

Get 1:1 Help Now