> Has anyone succeeded in conducting an ftp session as a MC process? Or maybe
> you've conducted some other kind of connection? I'd like to know how.
You could open a pipe to an ftp process and talk to it like you would
with expect but an easier way is to use a utility called xtp (on unix)
which is an ftp client that lets you specify all of the options on the
command line. E.g. (from man page)
To retrieve file display.tar.Z from host wizard.dupont.com, use:
xtp -binary -retrieve display.tar.Z wizard.dupont.com
To retrieve all the files from directory public/documents
from host wizard.dupont.com, use:
xtp -binary -retrieve documents/ wizard.dupont.com public
You simply build up a command string in metatalk and issue a shell.
E.g. (from memory)
put "xtp -binary -retrieve" && filename && hostname into mycommand
put shell(mycommand) into theResult
I use an ancient copy of xtp that came (I think) as part of the
imagemagic toolkit but it should be easy enough to find using archie or
altavista.
You can do the same sort of thing with resources on the Web using the perl
program url_get.pl or an equivalent. It would be nice if web access was
built into mc the way it is in Formula Graphics Multimedia System so you
could specify a url as an alternative to a file. Nonetheless, MetaCard
is still the best!
Hope that helps,
Eddy Mc Daid.
-------------------------------------------------------------------
Eddy Mc Daid Project Manager Interactive Systems Centre
Telephone: +44-1504-375622 Fax: +44-1504-370040
WWW: http://www.iscm.ulst.ac.uk/isc/isc-staff/eddy.html
-------------------------------------------------------------------
Any opinions expressed are mine but may be freely shared by others.