How to Install and Uninstall sleepenh Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 07,2024

1. Install "sleepenh" package

In this section, we are going to explain the necessary steps to install sleepenh on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install sleepenh

2. Uninstall "sleepenh" package

This guide covers the steps necessary to uninstall sleepenh on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove sleepenh $ sudo apt autoclean && sudo apt autoremove

3. Information about the sleepenh package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: sleepenh
Priority: extra
Section: universe/utils
Installed-Size: 50
Maintainer: Ubuntu Developers
Original-Maintainer: Nicolas Schier
Architecture: amd64
Version: 1.4-2
Depends: libc6 (>= 2.4)
Filename: pool/universe/s/sleepenh/sleepenh_1.4-2_amd64.deb
Size: 7812
MD5sum: 63ecc70518483ae06fe38721c861b4de
SHA1: d8ac56193b4c4e05e29241953dadfcfc881a1a50
SHA256: d5a0551abe026186fa877812576326e64725d770789b0b7b7866c2c2d0872e1e
Description-en: Sleep until a given date with subsecond resolution
sleepenh is an sleep program for using in shell scripts
that need to perform a loop that repeats at a regular
time interval, without cumulative errors.
.
It supports microsecond resolution.
.
You can also specify the time you need between two calls
of sleepenh.
.
Here follows an usage example to clarify its purpose. This
example sends 'A' to ttyS0 every 1.2 seconds.
#!/bin/sh
# does not wait (or wait 0), just to get initial timestamp
TIMESTAMP=`sleepenh 0`
while true; do
# send the byte to ttyS0
echo -n "A" > /dev/ttyS0;
# wait until the required time
TIMESTAMP=`sleepenh $TIMESTAMP 1.200`;
done
.
For more details, please read the manpage.
Description-md5: 531501bbd5daf4bc505aa2af6e6734ae
Homepage: https://github.com/nsc-deb/sleepenh
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu