How To Install sleepenh on Kali Linux
Introduction
In this tutorial we learn how to install sleepenh on Kali Linux.
What is sleepenh
sleepenh is:
sleepenh is a sleep program for 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.
There are three methods to install sleepenh on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install sleepenh Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install sleepenh using apt-get by running the following command:
sudo apt-get -y install sleepenhInstall sleepenh Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install sleepenh using apt by running the following command:
sudo apt -y install sleepenhInstall sleepenh Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install sleepenh using aptitude by running the following command:
sudo aptitude -y install sleepenhHow To Uninstall sleepenh on Kali Linux
To uninstall only the sleepenh package we can use the following command:
sudo apt-get remove sleepenhUninstall sleepenh And Its Dependencies
To uninstall sleepenh and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove sleepenhRemove sleepenh Configurations and Data
To remove sleepenh configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge sleepenhRemove sleepenh configuration, data, and all of its dependencies
We can use the following command to remove sleepenh configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge sleepenhDependencies
sleepenh have the following dependencies:
References
Summary
In this tutorial we learn how to install sleepenh package on Kali Linux using different package management tools: apt, apt-get and aptitude.