Subject: Re: OFF TOPIC: Controlling ftp via ksh or csh
To: christophe plasschaert <cplasschaert@Geodis-overseas.fr>
From: Alexander Frolkin <alexander@frolkin.demon.co.uk>
List: netbsd-help
Date: 03/21/2000 08:39:45
On Mon, Mar 20, 2000 at 07:06:32PM +0100, christophe plasschaert wrote:
> Hi, everibody
> i am looking for a way of controlling ftp in a script shell ( i don't
> want to use expect, in fact i can't). So if anybody has an idea of how
> to do it it would be very helpful.

Have you tried doing something like:

echo "open whereever" > ftpscript
echo "user whoever" >> ftpscript
echo "pass foobar" >> ftpscript
echo "cd /dir" >> ftpscript
...
ftp < ftpscript

I haven't tried this, but it may work.


Alexander.

> thank you,and have a nice day
> 
> Christophe PLASSCHAERT, "It's a pleasure to learn everiday"