[Ilugc] shell and expect interaction

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Thu Oct 26 12:33:11 2006

On Thu, Oct 26, 2006 at 10:24:33AM +0530, Thangavelu Sivaraman wrote:

Hi All,

1)What is the procedure to call an expect script from a shell script?

2)Is it possible to do the vice versa?

3)I have to form a string like "20061026-abc-recent" (i have done it with
the date command in shell script) and send it to the ftp get command.(the
ftp automation is in expect).

Pl advise.
Sivaraman,

        If you want to automate ftp then you can make do with netrc(5). I hav 
done it and works reasonably well.

        I have tried to use expect long ago and tried some basic things. Looks 
good to me but didn't go beyond.

        I am sure many LUGGies can help since expect is a very powerful 
scipting and test automation tool and many folks in India will be familiar with 
it.

        Which other nation in the whole world does more testing and software 
maintenance work than India? :-)

regards,
Girish

Other related posts: