For my small personal projects, I usually use Slack as a central notification and logging system to help me keep track of the state of my applications. Below is a simple bash function that I use a lot in many of my bash scripts in order to send a notification to a Slack channel: ####### Send notification messages to a Slack channel by using Slack webhook# # input parameters:# $1 - message level: 'INFO' | 'WARN' | 'ERROR'# $2 - pretext# $3 - main text######SLACK_WEBHOOK_URL=xxx SLACK_CHANNEL=x...| Tech Notes from Steven
Creating users in Linux/Unix is a straightforward task. However, adding multiple users across multiple servers can be a time-consuming task, so you can automate this with a shell script to … The post How to Create Users using Shell Script in Linux first appeared on 2DayGeek.| 2DayGeek