Implementing infinite wait in shell scripting

前端 未结 7 540
独厮守ぢ
独厮守ぢ 2021-02-05 04:30

This may sound trivial, but I\'m pretty sure this question hasn\'t been asked, or at least I can\'t find it.

I\'m looking for a way to construct an infinite wait

相关标签:
7条回答
  • 2021-02-05 05:31

    If you have GNU coreutils, which accepts floating-point seconds, you can try:

    sleep inf
    

    This should block until the 64-bit timestamp wraparound.

    0 讨论(0)
提交回复
热议问题