Solved

set priority at point of scrip execution at command prompt

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

856 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