E
Erik_loa
Guest
Hello
I try these lines in a file called hepp.bash
------------------------
#!/usr/bin/expect
expect "hello"
------------------------
when I do:
bash hepp.bash
I get:
couldn't read file "hello": no such file or directory
(I have version 5.44.1.15 installed.)
I guess I am doing some fundamental wrong since I have not been able to find anyone
having this problem
when I just write expect in the commadn line then the the command line changes to
expect1.1>
if I then write expect "hello"
then it works.
My question, how do I get expect to work in a script file ?
BR
/Erik
I try these lines in a file called hepp.bash
------------------------
#!/usr/bin/expect
expect "hello"
------------------------
when I do:
bash hepp.bash
I get:
couldn't read file "hello": no such file or directory
(I have version 5.44.1.15 installed.)
I guess I am doing some fundamental wrong since I have not been able to find anyone
having this problem
when I just write expect in the commadn line then the the command line changes to
expect1.1>
if I then write expect "hello"
then it works.
My question, how do I get expect to work in a script file ?
BR
/Erik