Last Updated on January 22, 2022
sleepenh is a program that can be used when there is a need to execute some functions periodically in a shell script.
It was not designed to be accurate for a single sleep, but to be accurate in a sequence of consecutive sleeps.
After a successful execution, it returns to stdout the timestamp it finished running, that can be used as INITIALTIME to a successive execution of sleepenh.
INITIALTIME is a real number in seconds, with microseconds resolution. This number is system dependent. In Linux systems, it’s the number of seconds since midnight 1970-01-01 GMT.
Features include:
- Designed for shell scripts that need to perform a loop that repeats at a regular time interval, without cumulative errors.
- Supports microsecond resolution.
- Specify the time you need between two calls of sleepenh.
Website: salsa.debian.org/debian/sleepenh
Support:
Developer: Nicolas Schier (original developer was Pedro Zorzenon Neto)
License: GNU GPL v2.0+
sleepenh is written in C. Learn C with our recommended free books and free tutorials.
Drop-in replacements for Core Utilities
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.