Home
Name Modified Size InfoDownloads / Week
README.md 2022-07-27 1.3 kB
tiny-shell-scripts-0.98.tar.bz2 2022-07-27 3.1 kB
tiny-shell-scripts-0.96.tar.bz2 2022-06-15 2.4 kB
tiny-shell-scripts-0.95.tar.bz2 2022-04-25 2.1 kB
Totals: 4 Items   8.9 kB 0

Tine Shell scripts

These are small - straight forward, 'sh' scripts developed to simplify typical tasks. It can be used 'as it is', or as an examples to implement other solutions.

timeset.sh

One line command to set correct time. Command sends GET HTTP reqest to online server, then strips time from 'Date' header. Useful in systems without RTC hardware such as Raspberry PI. It does not provide such a precision as NTP, but, it should be good enough for majority of applications. There is no special requirements regarding system (curl package) and network (HTTP/S query) connectivity.

It's handy to add this line to '/etc/rc.local', so the time is set correctly just after boot.

pospone_terminal.sh

Pospone commang execution, postpones execution of a given command by a given amount of secounds. Provides a simple annimation to ensure that system is 'not hanging', but counting down.

Command is designed to be used in a terminal, otherwise simple 'sleep

sync.sh & sync_dir.sh

Perform certain actions - such as git commit or backup, for a given directory. Script reads sub-directory list of a certain directory to call a specified acctions upon each sub-directory.

docker backup

Script that backups running docker continers

Version 0.98

Source: README.md, updated 2022-07-27