717 B
717 B
sleepuntil
Sleep Until is a Bash script that allows you to suspend execution until a specified date and time is reached. It provides a convenient way to schedule tasks or delay actions until a desired moment.
Requirements
- Bash (Bourne Again Shell)
- Unix-like operating system (Linux, macOS, OpenBSD, ...)
Installation
- Clone this repository
chmod +x install.sh
(make it executable)- Run
./install.sh
. This will install the script system-wide - If your system is not supported for automatic installation, proceed as illustrated by the install script
Usage
sleepuntil [-v] <datetime>
Examples
sleepuntil -v "tomorrow 9am"
sleepuntil 10pm && execute_evening_task