Linux.com

Newsvac

Floating Point Math in Bash, Part 2 (Wait for System Load)

August 18, 2008 (4:00:00 AM) -  1 year, 3 months ago

Share    Print    Comments   

If you run scripts that require a lot of execution time it's a good idea to try to avoid letting them overload your system. You can run them via nice, but if for example your script is sending a bunch of emails your email daemon isn't running via nice and it may itself get out of control. One way to deal with this is by using the values in /proc/loadavg to pause when your system load gets too high.
Read more at: linuxjournal.com

Share    Print    Comments   



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya