Category "expect"

issues with spawn id <idx> not open when executing script from iTerm2

I am trying to write a script and execute under iTerm2 profile. However whenever I open the new tab i run into this error. but I execute the same script on Term

How to execute a shell script and continue typing?

I'm trying to execute a shell script that ssh's into a jump server, enter a password and then be able to enter commands or ssh into another server. The issue is

Automatic restart of ip-phones via ssh and cron (sshpass, expect or other solutions)

The task is to remotely reboot ip-phones every night.sshpass:sshpass -p 12345678 ssh -o StrictHostKeyChecking=no [email protected] reboot In response: Connectio