[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script of the ftp



On Fri, Jul 20, 2007 at 03:37:27PM -0500, Ron Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/20/07 14:42, Márcio Luciano Donada wrote:
> > This is for the snakes in scripts. I am making one scripts that it
> > uses the bow will be for sending archives of different varios
> > directory for ftp, only that I am having a problem of
> > 
> > My scripts is:
> > 
> > !/bin/bash
> > users=`ls /home/relatorios/`
> > for user in $users; do
> >     cd /home/relatorios/$user
> >     ftp -n 200.228.43.6<<End-Of-Session
> >     user blablablabla "blabla"
> >     bin
> >     prompt
> >     cd /home/$user/ARQUIVOS
> >     bye
> >     EOF
> > done
> > 
> > erro is: end of file expetend,
> 
> That's not how you do "anonymous" files.
> 
> And try ncftp.  It's got a utility called ncftpput which should help
> you in this circumstance.

Also see netrc; a .netrc file can contain the user & password for
ftp sites, so they don't need to be in your scripts.

Ken
-- 
Ken Irving, fnkci@uaf.edu



Reply to: