AWS configuration + EXPECT

Hi,

I'm trying to configure my arduino Yun with AWS.

First step, I've to execute the following mySCP script. It starts with:

#!/usr/bin/expect -f

connect via scp

set timeout -1
....

Unfortunately, it gives me the error:

root@Seeed:~# ./mySCP.sh
-ash: ./mySCP.sh: not found

I checked the /usr/bin folder, and I don't have EXPECT there:

root@Seeed:~# ls /usr/bin/expe*
ls: /usr/bin/expe*: No such file or directory

Does any know the process to install EXPECT?

Thanks in advance,
Claudio

I found the installation program:

http://expect.sourceforge.net/

but while executing the ./configure i got this error:

root@Seeed:/overlay/usr/bin/expect5.45# ./configure
checking for correct TEA configuration... ok (TEA 3.9)
configure: configuring expect 5.45
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions

Any idea?

If you have the problem to install these components, open the script and run the commands manually.

No expect for Yun.

opkg update
opkg list |grep empty
empty - 0.6.18b-1 - empty is an utility that provides an interface to execute and/or interact with processes under pseudo-terminal sessions (PTYs). This tool is definitely useful in programming of shell scripts designed to communicate with interactive programs like telnet, ssh, ftp, etc. In some cases, empty can be the simplest replacement for TCL/expect or other similar programming tools.

empty can be the simplest replacement for TCL/expect or other similar programming tools.

Install empty:

opkg update
opkg install empty