Code:
#! /bin/bash

#initialization
cookiefile='cookies'

echo 'Please enter the rapidshare-username:'
#read username

echo 'Please enter the rapidshare-password:'
#read password

#first save the cookies in a file called cookies
wget -q --save-cookies=$cookiefile --post-data=login=$username\&password=$password https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi


#from here on we need a loop
while read link; do

#here we get the file
wget --load-cookies=$cookiefile $link

fwext=${link##*/}
filename=${fwext%.html*}
echo $filename downloaded
mv $fwext $filename

#here our loop ends
done

#then we have to log out and clean up
echo 'disconnecting...'
wget -q --load-cookies=$cookiefile 'https://ssl.rapidshare.com/cgi-bin/premium.cgi?logout=1' 
rm $cookiefile
rm premium*
in der Linkliste muessen die Links bloss untereinanderstehen.
Man kann das Script dann per
Code:
./download.sh < linklist.txt
starten.

Ich habe das jetzt nur scnell runtergescriptet, und nicht sonderlich auf die From geachtet. Bei Verbesserungsvorschlaegen, sowohl funktionelle oder was man stilistisch besser loesen koennte, schreibt einfach in diesen Thread.

Natuerlich braucht man fuer dieses Script einen rapidshare premium account, aber das duerfte ja kein Problem sein.