Am 15.05.2013 um 17:44 schrieb Matt :
> I have a shell script that's run every 5 minutes I use to call many
> other shell scripts. Is there a way to wait a random number of
> seconds before executing each line? Something like this.
>
> wait_random 10 - 180 (perl /scripts/my_script.pl) &
> wait_r
On Wed, May 15, 2013 at 1:38 PM, Thomas Johansson wrote:
> On 2013-05-15 17:44, Matt wrote:
>> When I run them all at once they bog the system and cause some of
>> latency graphs on equipment being monitored to look poor.
>
> Wait randomized interval of 60 seconds and start
>
>perl -e "sleep(
On 2013-05-15 17:44, Matt wrote:
> I have a shell script that's run every 5 minutes I use to call many
> other shell scripts. Is there a way to wait a random number of
> seconds before executing each line? Something like this.
>
> wait_random 10 - 180 (perl /scripts/my_script.pl) &
> wait_random
Matt wrote:
> I have a shell script that's run every 5 minutes I use to call many
> other shell scripts. Is there a way to wait a random number of
> seconds before executing each line? Something like this.
>
> wait_random 10 - 180 (perl /scripts/my_script.pl) &
> wait_random 10 - 180 (perl /scrip
On Wed, May 15, 2013 at 11:44 AM, Matt wrote:
> I have a shell script that's run every 5 minutes I use to call many
> other shell scripts. Is there a way to wait a random number of
> seconds before executing each line? Something like this.
>
Use your script to generate a random number [0] and
Something like
sleep $(($(date +%S)*3))
More random would be to use nanoseconds (see date manpage), but then
you'd have to cook up an algorithm to test and toss out values
(arguments to 'sleep') which you didn't want.
On 05/15/2013 11:44 AM Matt wrote:
> I have a shell script that's run every
6 matches
Mail list logo