Sleep until a specific time/date

前端 未结 18 2139
栀梦
栀梦 2020-11-28 21:13

I want my bash script to sleep until a specific time. So, I want a command like \"sleep\" which takes no interval but an end time and sleeps until then.

The \"at\"-d

18条回答
  •  半阙折子戏
    2020-11-28 21:40

    You can calculate the number of seconds between now and the wake-up time and use the existing 'sleep' command.

提交回复
热议问题