Forum: Cfengine Help
Subject: Re: Avoiding "Duplicate selection of value"
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21572,21616#msg-21616

Michael Stevens Wrote:
     
>     do_script::
> 
>         '/bin/echo "/path/to/script.sh
> >/tmp/script.log 2>&1" |'
>             args        =>  "/usr/bin/at now +
> $(rnd) minutes",
>             contain     =>  in_shell;       
> } 

Have you looked a splayclass?  It can randomize when promises are kept without
the overhead of calling a shell.
http://www.cfengine.org/manuals/cf3-reference.html#Function-splayclass

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to