Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2006 22:37:34 -0800 (PST)
From:      Angelo Christou <christou44@yahoo.com>
To:        a non y mouse <anonymous@forea.ch>, Gavin Cameron <ggcameron@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FTP Automate Shell Script
Message-ID:  <20060130063734.2901.qmail@web37113.mail.mud.yahoo.com>
In-Reply-To: <43DD9DD8.6040102@forea.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
> > A .netrc file (read the ftp man page) may work for
> you.
> > 
> > Cheers
> > Gavin
> 
> If you have shell access on the destination host,
> you can also try mirror.


Thanks for the many suggestions, I will be looking
into them all (.netrc doesn't work yet, still trying).

I am still curious why the password isn't working
though. Is it possible that you can not script this?

The script works by creating the following temp file
and piping it to ftp.

angelo
cd /images
put img00234.jpg img00234.jpg
put img00235.jpg img00235.jpg
put img00236.jpg img00236.jpg
put ftp.sh ftp.sh
quit

I tried - 

angelo mysecret
cd /images
put img00234.jpg img00234.jpg
<cut>
put ftp.sh ftp.sh
quit

and

angelo
mysecret
cd /images
put img00234.jpg img00234.jpg
<cut>
put ftp.sh ftp.sh
quit

Neither seem to work. I'm also not sure how to NOT
copy the actual file too :)

Thanks again..
Ang.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060130063734.2901.qmail>