bash expect not working in crontab code example Example: bash expect not working in crontab Changing interact to expect eof worked for me!