Core Lua Scripting Techniques
Invoking Lua from the Shell
Lua modules can be executed directly via the command line interface without creating a separate script file. This is useful for quick tasks or integrating with system workflows.
lua -e "require('sys.network').verify('127.0.0.1')"
Processing Command Line Arguments
When a script is executed, arguments are st ...
Posted on Thu, 27 Aug 2026 16:09:27 +0000 by yandoo
Practical Linux Shell Scripting Scenarios
This script gathers essential server metrics, including the hostname, network details, OS version, kernel data, CPU specifications, and memory capacity. It utilizes color codes to improve output readability.
#!/bin/bash
# Filename: server_status.sh
# Define color variables for terminal output
COLOR_RESET='\033[0m'
COLOR_HEADER='\033[1;36m'
COL ...
Posted on Fri, 10 Jul 2026 17:07:34 +0000 by w4seem