Re: [SLE] Bash script: problem in using ftp -n $server <<End-Of-Session in a while loop
From: Gaël Lams (lamsgael_at_gmail.com)
Date: 09/29/05
- Previous message: jdd sur free: "Re: [SLE] Linux-savvy partition manager to run on Windows?"
- In reply to: Ulf Rasch: "Re: [SLE] Bash script: problem in using ftp -n $server <<End-Of-Session in a while loop"
- Next in thread: Scott Leighton: "Re: [SLE] Bash script: problem in using ftp -n $server <<End-Of-Session in a while loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Sep 2005 13:45:45 +0200 To: suse-linux-e@suse.com
>
> Have a look at the program wget to download the files. It supports http
Hum, I should have think about using wget. It works perfectly (see lines
below).
For the sake of curiosity, it would have been nice to understand why the
other script does not work.
Thank you very much Ulf :-)
Have a nice day all,
Gaël
while [ "$index" -lt "$element_count" ]
do
wget ftp://"$User":"$Password"@"${IP[$index]}"/event.txt<ftp://"$User":"$Password"@"${ip[$index]}"/event.txt>
wget ftp://"$User":"$Password"@"${IP[$index]}"/data.txt
let "index = $index + 1"
done
- Previous message: jdd sur free: "Re: [SLE] Linux-savvy partition manager to run on Windows?"
- In reply to: Ulf Rasch: "Re: [SLE] Bash script: problem in using ftp -n $server <<End-Of-Session in a while loop"
- Next in thread: Scott Leighton: "Re: [SLE] Bash script: problem in using ftp -n $server <<End-Of-Session in a while loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]