Search across all documentation pages
11 pages in this section.
Why a Python automation script's entire interface to cron, CI, and the shell is a small set of Unix primitives - argv, environment, stdio, exit codes, and signals - and what that means for every other page in this section.
Learn system scripting basics with 10 Python examples. Understand script entry points, parse CLI arguments with argparse, and manage paths using pathlib.
Automate file and directory tasks using Python's pathlib, shutil, and tempfile modules. Learn safe writes, batch transforms, and log rotation.
Run external binaries from Python using subprocess. Learn to safely execute commands, capture output, set timeouts, and stream large outputs.
Schedule Python scripts reliably with system cron, systemd timers, or in-process schedulers like APScheduler for ETL, logging, and API polling.
Integrate automation scripts with APIs and webhooks using Python. Learn to poll, handle pagination, and set up event-driven triggers.
Extract data from log files and command output using streaming I/O, regex, and JSON parsing without loading large files into memory.
Learn best practices for writing robust system scripts. Discover how to structure scripts, handle files, manage processes, and ensure predictable, safe automation.
A single-page roundup of every highlight bullet from the 10 pages in the System Scripting section, grouped by source page so you can scan all 55 takeaways without opening each article individually.