Re: Script of the ftp
-----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.
- --
Ron Johnson, Jr.
Jefferson LA USA
Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGoR0HS9HxQb37XmcRAiC0AJwOddRT4MEQG+zHOQeGOefikEjyFwCdFoKN
T8FvuGFtBtb9ksHTkxzIa0Y=
=6i5l
-----END PGP SIGNATURE-----
Reply to: