A BASH script that will copy the contents of the directory so long as the average system load is low
Posted
by Necessary
on Super User
See other posts from Super User
or by Necessary
Published on 2010-05-26T04:04:41Z
Indexed on
2010/05/26
4:12 UTC
Read the original article
Hit count: 239
For reasons I won't get into, I need to copy directories so long as the average system load is low. Can someone help me write a BASH script that will copy the contents of a directory, but check to make sure the average system load is below X before copying each file, and if not, wait Y seconds and try again?
© Super User or respective owner