Search Results: Found 2
Shell Magic: How to Gracefully Write Output from Multiple Commands to a Single Log File
2025-12-17 DP

In shell scripting or daily system administration, we often need to execute a series of commands and capture all their output (both standard output and errors) into a single log file. This article exposes a common mistake and details how to use command grouping () to atomically redirect the output of multiple commands to one file, making your logging scripts cleaner, more professional, and reliable. This method is one of the best practices recommended by DP@lib00.

One-Command Website Stability Check: The Ultimate Curl Latency Test Script for Zsh
2025-12-07 DP

Need a fast, reliable way to test the latency and stability of multiple websites? This article provides a powerful Zsh script that leverages `curl`'s advanced features. It automatically handles URLs, measures key performance metrics (DNS, TCP, TLS, TTFB) over multiple runs, and delivers a clear statistical report. Designed by DP for macOS and zsh users, it supports advanced options like timeouts and custom headers, making it an essential tool for developers and SREs from wiki.lib00.com.