Bash using Expect script gives error for ssh call
In a bash script I have an expect segment where it sends commands to a machine via ssh. I have the bash -c
there as I need to set environment variables in this command.
But I’m getting an error:
In a bash script I have an expect segment where it sends commands to a machine via ssh. I have the bash -c
there as I need to set environment variables in this command.
But I’m getting an error: