Tagged articles
expect
11 articles · Page 1 of 1
This guide introduces the Linux stream editor sed and the automation tool expect, covering essential options, line‑based editing, pattern matching, backup strategies, substitution techniques, grouping, practical exercises, non‑interactive input methods, and expect scripting fundamentals for automating interactive shell sessions.
expectlinux automationsed
0 likes · 7 min read

This guide explains what a shell script file is, how to write Bash scripts with proper syntax, manage variables, use redirection, pipes, quoting, grep, operators, arrays, control flow statements, functions, and even automate interactions with an Expect script, providing clear examples for each concept.
Control structuresScriptautomation
0 likes · 11 min read

This guide explains what script files are and walks through writing Bash scripts, covering naming conventions, variables, special and environment variables, redirection, pipes, quoting, grep options, operators, arrays, control structures, functions, and automating interactions with Expect, providing practical code examples for each concept.
Scriptautomationbash
0 likes · 11 min read

This guide explains how to use sed for line‑based text processing, including options for in‑place editing, pattern ranges, odd/even line extraction, substitution with various delimiters and flags, backup strategies, grouping with extended regex, practical exercises, and automating interactive scripts with expect.
expectregexsed
0 likes · 5 min read

This article presents a comprehensive collection of Bash scripts that perform tasks such as verifying file consistency across servers, scheduled log cleaning, network traffic monitoring, numeric analysis in files, automated FTP downloads, interactive number games, Nginx 502 detection, variable assignments, bulk file renaming, IP address validation, and various system administration operations.
automationbashexpect
0 likes · 24 min read

This article explains three techniques—using echo with a pipe, here‑document redirection, and an Expect script—to supply passwords automatically for sudo, ftp, and ssh commands, enabling non‑interactive execution of privileged or remote operations on Linux systems.
expectpasswordsudo
0 likes · 3 min read

Learn how to automate SSH logins on macOS using iTerm2's Trigger feature, create reusable Expect scripts, and enable fast file transfers with Zmodem, covering detailed configuration steps, regex tuning, and solutions to common pitfalls for seamless remote server access.
DevOpsSSH automationZmodem
0 likes · 12 min read

This guide explains how to use a Jenkins‑triggered shell script with Expect to regularly log into multiple remote VMs, record results, allow users to add hostnames, and commit changes to a Git repository for automated DevOps operations.
DevOpsJenkinsautomation
0 likes · 4 min read

Learn how to efficiently update root passwords across dozens or hundreds of Linux servers by creating Expect scripts that automate SSH logins, parse IP and password lists, and execute batch password changes, complete with step-by-step instructions, required environment setup, and script explanations.
Linuxautomationexpect
0 likes · 5 min read

This guide details how to automate SSH key generation, password‑less login, and batch file distribution across hundreds of servers using Expect scripts, ssh‑keygen, ssh‑copy‑id, and the pssh/pscp/pslurp command suite, providing step‑by‑step examples for efficient operations.
LinuxSSHbatch
0 likes · 14 min read

This article introduces the Expect scripting language, an extension of Tcl, and provides a concise example that automates running commands on multiple Linux servers by handling interactive prompts such as password entry, along with usage instructions and installation tips for CentOS and Ubuntu.
LinuxSSHexpect
0 likes · 3 min read
