[Ilugc] shell and expect interaction
- From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
- Date: Thu Oct 26 12:39:46 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.
Man,
I just recollected that there are 100s of ways in which to make ftp non
interactive and so many different variants of ftp command line.
The ftp in OpenBSD can talk http as well. :-) Well...
And the ftp in NetBSD is the sexiest I have seen. It is so scriptable
and non interactive that it is a treat to watch the pkgsrc in action as it uses
ftp in the background.
And of course you have ncftp which is the most user friendly console
ftp client I have seen. I have heard of lftp, mirror and so on.
All these are available on linux. If I am not much mistaken you use
linux, right? :-)
Though ftp is the oldest fossil and a broken protocol, support for it
doesn't seem to be decreasing, only increasing.
And sftp, scp's step sister doesn't seem to interest folks as much as
scp.
Best,
Girish
Other related posts: