Top "Expect" questions

Expect is a Unix/Linux extension for the Tcl scripting language.

How to use bash/expect to check if an SSH login works

My team manages many servers, and company policy dictates that the passwords on these servers must be changed every couple …

bash shell ssh expect
exit expect {} without timeout

I am struggling with the classic problem of typing password automatically in ssh, and like everybody else I am stumbling …

ssh scripting expect
expect, interact and then again expect

There are several posts regarding the same, but i still not able to make my expect script work properly. My …

linux login passwords expect interaction
How to send a password with a $ symbol in Expect Script

I have an expect script that I need to login to a remote system and execute commands. This script works …

bash authentication ssh expect remote-server
expect puts write to file

I am writing an expect script that will ssh into several IPs to test their connectivity. I would like to …

file bash expect channel puts
Automate SCP with multiple files with expect script

So I have seen multiple posts on this and maybe I just haven't seen the right one. I am using …

linux expect scp
How can I encrypt or hide passwords in a Perl script?

I am working on Perl script that uses Expect to login via telnet to remote machines (don't ask, gotta use …

perl encryption passwords expect
How to suppress expect send output?

I have an expect script which I'd like to behave as a fancy ssh program that hops several machines and …

expect
Don't make me manually abort a LaTeX compile when there's an error

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when …

latex automation prompt expect latexmk
How do I use a date in an Expect script?

I need to have access to the current date (or time) within the Expect script so that I can add …

expect