On Wed, Nov 02, 2016 at 11:11:42PM +0100, Bernhard Voelker wrote: > 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). ;-) Good point... I have added check for "timeout". Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- 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