[applmgr@psl-hades tmp]$ . test.sh
Starting...
bash: spawn: command not found
Line 2...
": no such file or directory:
bash: send: command not found
": no such file or directory
bash: send: command not found
": no such file or directory
bash: send: command not found
": no such file or directory
bash: send: command not found
: command not found
[applmgr@psl-hades tmp]$ chmod 777 test.sh
[applmgr@psl-hades tmp]$ ./test.sh
bash: ./test.sh: /usr/bin/expect^M: bad interpreter: No such file or directory
Please use code tags for Inputs/commands/codes you are using into your posts as per forum rules. Could you please run following command to check either expect has been installed into your box or not. Because expect is not a built-in shell utility.
which expect
Please post us the output of above command along with your O.S name.
Could you please look for control M characters(Garbage characters) as while putting the file from Windows to *NIX operating systems they may come.
Could you please run following command and let us know the output for same.