[2365] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Any ftp-command-scripting possible?

daemon@ATHENA.MIT.EDU (John D. Mitchell)
Sat Nov 2 16:35:17 1996

Date: Sat, 2 Nov 1996 13:35:20 -0800
From: "John D. Mitchell" <johnm@mitchell.org>
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.95.961102213826.19431A-100000@localhost>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

>>>>> "Julien" == Julien Michielsen <jmichielsen@kennis.hobby.nl> writes:
>A few ftp-sites I regularly visit all have their own clumsy site-name
>and still more akward directory structure. Would it be possible to
>compose a script of the name ftstn which I could execute after dialing
>my provider, and which would
>-1 ftp site n
>-2 login as ftp, and supply my username as the password
>-3 go to a certain directory at the ftp-site
>-4 exit, and leave controll to me.

ncftp will saves the last directory that you visited at each site.

The general answer when it comes to "scripting" interactive programs is to
use "expect".  Try "man expect" for more information.  There's also an
O'Reilly book about expect.

Go wild,
	John


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post