From: jr4412 on
hi Gary,

> It may be obvious that I'm new to TCL and Expect.  I was thinking that
> since Expect is an extension of TCL that the two interpreters might be
> interchangeable?  I must be doing something silly.

I've never used expect (think it's a tcl application) but there are
others reading this, so help will hopefully be forthcoming.

you only seem to use expect to download this one file, FWIW, I used
'wget' to retrieve and store the 'rfc-index.txt' locally before
processing.
From: jr4412 on
oops, looked closer at code and re-read your first post, you want to
retrieve a specific RFC after you found it in the index?

misunderstood, still, as I said never used expect and (heresy!) would
probably use a shell script + tcl + whatever I need but, again, that's
no help. sorry.
From: dave.joubert on
On Feb 7, 7:10 am, Gary <gctaylor2004-google...(a)yahoo.com> wrote:
>
> It may be obvious that I'm new to TCL and Expect.  I was thinking that
> since Expect is an extension of TCL that the two interpreters might be
> interchangeable?

No, not interchangeable. For example, close in Expect is not the same
as close in Tcl.

So, yes you should break the the problem into 2 for your own sanity:
a) the main script (in Tcl or whatever)
b) a sub-script (called from the main script) to retrieve the files

Dave
From: Gary on
Thanks Dave and jr4412 for the help.
>
> So, yes you should break the the problem into 2 for your own sanity:
> a) the main script (in Tcl or whatever)
> b) a sub-script (called from the main script) to retrieve the files
>

I get it now. I ended up making my main script Tcl, and then using
exec my_expect_script.exp $argv

That works. Thanks again.