[NTLUG:Discuss] expect or what

Chris Cox cjcox at acm.org
Fri Sep 19 12:54:58 CDT 2008


Fred James wrote:
...
> 
> So, I am taking a step back for a moment to ask, am I am being silly?  
> Is there another, perhaps better or at least not worse, way to 
> accomplish the requirements?
> 
> Thank you in advance for any help you may be able to offer
> Regards
> Fred James
> 
> PS:  Please don't say Perl!  'expect' in shell is so much simpler.

There is a Python expect (pexpect).  It is probably better since
Tcl just doesn't have the traction that it used to.

You still might not have it though on every platform... and
in all fairness, if your supporting a lot of non-Linux, you'll
find Tcl expect to be easier to find (still).

Batch processing ftp, or doing anything via ftp is somewhat
outdated.

You might want to revisit your requirements.  There are a lot
of scriptable ftp clients out there, but again, probably going
to have similar issues to needing expect on a platform.

HTH,
Chris





More information about the Discuss mailing list