0

The first script is basically an external lib that I don't want to tamper with.

I already tried the following:

set timeout 100
spawn python long-running-script-with-prompt.py

expect "Type the 6 digit code here:" {
   set CODE [python fetch-code.py]
   send "$CODE\n"
}

This however just breaks the first script, similar to just canceling. Is the problem in the expect script?

Julian Dm
  • 101
  • 1

0 Answers0