Hi Gurus,
I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as
#!/usr/bin/expect-5.43 -f
spawn telnet localhost 2233
expect "password:"
send "secret\r"
send "i data.cnbc.com\r"
send "exit\r"
expect eof
When I am trying to execute it, it gives message as:
./expect_script.exp
-bash: ./expect_script.exp: /usr/bin/expect-5.43: bad interpreter: Permission denied
Could you pls help me what's wrong with it?
Thanks in Advance
Regards,
niks.