On 11/02/2016 04:51 PM, Karel Zak wrote: >> +timeout 1s bash -c "while [ \$(ps --ppid $pid |wc -l) -lt 2 ]; do sleep 0.1 ;done" \ > > is "0.1" portable? :-) if one has timeout from coreutils, then it's likely that she also has sleep from there. Thus said, I'd rather worry about portability of using timeout rather than the "0.1" (if sleep fails, then nobody will care anyway). ;-) Have a nice day, Berny -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html