set priority at point of scrip execution at command prompt

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.


zubinntAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jlevieConnect With a Mentor Commented:
To run the jobe at a lower than normal priority you can use 'nice -n 15 ./thescript.pl'. See 'man nice' for details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.