問題:
I want my bash script to sleep until a specific time.我希望我的 bash 腳本休眠到特定時間。 So, I want a command like "sleep" which takes no interval but an end time and sleeps until then.所以,我想要一個像“sleep”這樣的命令,它不需要間隔,而是一個結束時間並在此之前休眠。
The "at"-daemon is not a solution, as I need to block a running script until a certain date/time. “at”-daemon 不是解決方案,因爲我需要阻止正在運行的腳本直到某個日期/時間。
Is there such a command?有這樣的命令嗎?