Questions tagged [expect]

expect is a tool for automating interactive applications according to a script.

41 questions
0
votes
2 answers

How can I use " inside send command

I have used the /usr/bin/expect interpreter to telnet into my other system and execute some commands using send. Telnet is successful however the problem is that I have to use the following command send "unset vpn "TEST" " when I run the script,…
Waqas
  • 29
  • 1
  • 2
0
votes
1 answer

autoexpect fails to run

I just installed the expect package (which is supposed to contain autoexpect). When I run autoexpect, I get this error: can't find package Expect while executing "package require Expect" (file "/usr/bin/autoexpect" line 6) Has anyone…
0
votes
0 answers

Catching the output from service which hangs in expect script

I am writing expect script to run bluetoothctl commands. When the commands run successfully when bluetoothctl runs well. But if there is problem with bluetooth service it shows "Waiting to connect to bluetoothd..." and at this point the expect…