In this article, we will make a simple bot logger. This script will log a few channels as well as handle the pings....
BASH Articles
Encrypting/decrypting files from a script in Linux
In this article, we are going to learn about OpenSSL. In this section, we are going encrypt and decrypt messages and...
Write a bash script to checking for file integrity and tampering
In this article, we are going to learn how to check the integrity of a file and how to check for tampering by writing...
Write a file-in-file-out program in bash and running processes in parallel
In this script, we use a concept called file-in-file-out (FIFO), also known as pipes, to pass along a parameter to...
Write a bash script to leveraging timeout when waiting for command completion
Sometimes, waiting for a command to finish execution or ignoring commands until completion might not be considered a...
Write a bash script for using temporary files and lock files in your program
Another mechanism or component programs and scripts often use is called a lock file. It’s usually temporary (it...
Write a bash script for generating and trapping signals for cleanup
You have probably pressed Ctrl + C or Ctrl + Z without knowing what was occurring—it’s just like...
Write a bash script to making a simple multi-level user menu using select
Select works using a provided list (for example, it can be a wildcard selection for files) and will give you a list,...
Write bash script for sanitizing user input and for repeatable results
One of the best practices for scripts (or programs, for that matter) is controlling user input, not only for security,...
Write a bash script to keep programs/scripts running after logoff
Leading up to getting our scripts to run as daemons, we need to know how to keep commands running after a user logs...
Write a bash script to running a program continuously (forever) using looping constructs or recursion
This is great for single use scripts, but what about if we wanted to have scripts execute multiple scripts through a...
Write a bash script to generating datasets and random files of various size
Usually, data that mimics real-world data is always the best, but sometimes we need an assortment of files of various...