Not so difficult, I do it to update a database from one server to other.

ftp -ine < /home/me/my_ftpscript

and my_ftpscript contains:

open ftp.mydomain.com 
user usernam passwd
type binary
get filename1 filename1
...
get filenameN filenameN
close


Hope this helps

Francisco


>>> [EMAIL PROTECTED] 15/03/02 08:01 >>>
Rick, I think I was not clear. I know about the command rename... I just
don't know how to connect throught script sending login, password, and
interacting with the ftp server...

Joao.

Rick van der Linde wrote:

> >Hello list,
> >
> >I need help with some scripts I must do. I'm not used to script
> >programming so I don't know the possibilities. In fact I need scripts
> >for uploading, downloading and renaming archives throught FTP
> >connection. For upload/download, I thought of using wget. The most
> >problem will be with the renaming. Actually, I need to conect to the
> >server, check out there if there is a specific file, and then decide to
> >rename another file.
> >
> >Can any one give me any directions?
>
> You can use mv for renaming files in scripts, like all other
> common unix commands. If it should be done within a ftp session
> you can use rename...
>
> mv <old_filename> <new_filename>
>
> Or in ftp session:
>
> rename <old_filename> <new_filename>
>
> Rick
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED] 
> https://listman.redhat.com/mailman/listinfo/redhat-list 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED] 
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to