Associate
- Joined
- 6 Nov 2006
- Posts
- 722
- Location
- Devon
Hi
I have a lot of files that I need to get from an ftp server so I'm trying to automate the process but I'm haveing a bit of trouble with the authentication. My script is
when I run it I get the following output
and when I type my password I get lots of messages saying Please logine using USER and PASS.
If anyone could help me get the authentication working I would be very grateful.
Thanks
I have a lot of files that I need to get from an ftp server so I'm trying to automate the process but I'm haveing a bit of trouble with the authentication. My script is
Code:
#!/bin/bash
echo "enter year ?"
read year
echo "enter month ?"
read month
export LOGNAME=mylogname
echo bin > in
for i in $(seq -w 01 31); do
echo cd /badc/ecmwf-e40/data/gg/ap/$year/$month/$i >> in
echo get ggap${year}${month}${i}00pv.grb >> in
echo get ggap${year}${month}${i}06pv.grb >> in
echo get ggap${year}${month}${i}12pv.grb >> in
echo get ggap${year}${month}${i}18pv.grb >> in
done
echo bye >> in
cat in
ftp ftp.badc.rl.ac.uk < in
when I run it I get the following output
Code:
AUTH not understood
AUTH not understood
KERBEROS_V4 rejected as an authentication type
Password:Name (ftp.badc.rl.ac.uk:mylogname):
If anyone could help me get the authentication working I would be very grateful.
Thanks