How do I run a expect script in macOS Automator?
As it is possible to see in the picture, there is no such option
its a script of type:
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityexpect
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
expect
's exit status? Are you sure the path is correct? Does the command work when issued via Terminal.app? See stackoverflow.com/questions/951336/how-to-debug-a-bash-script for help doing this.
Oct 2, 2018 at 12:46
expect
that it will read from a file. Either the shebang should be#! /usr/bin/expect -f
and called directly or called as/usr/bin/expect -f /path/to/script
.