Skip to content

yoffy/duntil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

duntil

Delay command until specific time.

Requirements

  • Linux
  • C++11 compiler

Build

$ make

Usage

duntil @POSIXTIME COMMAND [ARGS..]
duntil +SECONDS COMMAND [ARGS..]

@POSIXTIME

Seconds since 1970-01-01 00:00:00 UTC. It can be a decimal number.

+SECONDS

Seconds to wait. It can be a decimal number.

Example

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."

About

Delay command until specific time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published