Suspend execution until a specified date and time.
Go to file
2024-10-09 23:47:45 +02:00
deb/DEBIAN Added debian package 2024-05-06 12:15:26 +02:00
.gitignore Added debian package 2024-05-06 12:15:26 +02:00
CHANGELOG Added debian package 2024-05-06 12:15:26 +02:00
COPYRIGHT Added debian package 2024-05-06 12:15:26 +02:00
install.sh Updated wording in install.sh 2024-05-06 09:30:29 +02:00
LICENSE first commit 2024-05-06 07:58:45 +02:00
Makefile Added debian package 2024-05-06 12:15:26 +02:00
README.md Added debian package 2024-05-06 12:15:26 +02:00
sleepuntil Actual end date (parsed) on -v 2024-10-09 23:47:45 +02:00
sleepuntil.1 Corrected manpage 2024-05-06 09:33:22 +02:00

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

Debian-based systems

Grab the latest release from the releases page and install it with:

sudo dpkg -i sleepuntil*.deb

Manual installation

  1. Clone this repository
  2. chmod +x install.sh (make it executable)
  3. Run ./install.sh. This will install the script system-wide
  4. 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