MacOS Automator run Expect Script

automatormacos

How do I run a expect script in macOS Automator?

enter image description here

As it is possible to see in the picture, there is no such option

its a script of type:

!/usr/bin/expect

Best Answer

expect can be called from an Automator action but it must be indirect.

Within your Automator Run Shell Script action, call out to expect with something like:

#!/bin/sh
expect -f /absolute/path/to/expect/script