Gossamer Forum
Home : General : Perl Programming :

perl balancing

Quote Reply
perl balancing
Hi

Have a problem..

I have made a backup scripts that takes backup (tar and gz afterwards) of all home dirs and mysql var data.

The problem is that when I run this program, it uses all my resources (down to 0.00 % idle) when started. It takes most recources when doing a tar and gz. And if webalizer is started at the same time, the server have a though job I think.

Is there a way to set the script to take longer time instead of using all resources ? Commands is passed trough `` commands.

Are

Quote Reply
Re: perl balancing In reply to
you could try
nice -n 19 whateverscript.pl


Usage: nice [OPTION]... [COMMAND [ARG]...]
Run COMMAND with an adjusted scheduling priority.
With no COMMAND, print the current scheduling priority. ADJUST is 10
by default. Range goes from -20 (highest priority) to 19 (lowest).

-ADJUST increment priority by ADJUST first
-n, --adjustment=ADJUST same as -ADJUST
--help display this help and exit
--version output version information and exit

http://www.computerhope.com/unix/unice.htm