Hello again, well, after some trial & success- sessions, this is the way it's done: ftp -n foo.org << EOF user myusername mypasswd <command1> <command2> <commandN> EOF So there's no need for a .netrc file, or at least you don't have to modify it everytime a new ftp server is called. My solution fits our needs and it works pretty fine. Maybe you would also find it usefull. Danke auf jeden Fall! Cheers, Martin [snip]
Hi Martin, well I cannot go round not to tell RTFM. have a look into "man ftp". There is a ".netrc" file in the users $HOME, or rather you're supposed to create it. When you do "ftp foo.bar.com", the default user and pw for foo.bar.com are in that file, thus not requiring authentication anymore. With that, you can script your download with a simple file:
myfile= ---8<--- binary cd /pub/linux/whatever lcd ~/download get foo.bar.tar.gz quit ---8<---
ftp < myfile
will do the work.
.netrc may look like: machine ftp.foo.de login juergen.braukmann password xxxxxxx default login anonymous password juergen.braukmann@foo.bar.de
enjoy!
Juergen
PS: .netrc should be set to 600 that *only* you can read it!
[snip] -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq