Delay command until specific time.
- Linux
- C++11 compiler
$ make
duntil @POSIXTIME COMMAND [ARGS..]
duntil +SECONDS COMMAND [ARGS..]
Seconds since 1970-01-01 00:00:00 UTC. It can be a decimal number.
Seconds to wait. It can be a decimal number.
Echo "Happy New Year!" at 2100-01-01 00:00 in localtime:
$ duntil @$(date +%s -d "2100-01-01 00:00") echo "Happy New Year!"
Echo "Ramen is ready." after 3 minutes:
$ duntil +180 echo "Ramen is ready."