21 lines
450 B
Bash
Executable file
21 lines
450 B
Bash
Executable file
#!/bin/sh
|
|
|
|
VAR=1511
|
|
|
|
while true; do
|
|
echo "$VAR"
|
|
curl --cookie "osCsid=8a497efe811cfd788283cb087ebd195d" "http://www.readerserver.de/download.php?aboload=true&id=$VAR" > $VAR.pdf
|
|
if [ `file --brief --mime-type $VAR.pdf` != "application/pdf" ]; then
|
|
echo "no pdf"
|
|
#exit
|
|
fi
|
|
VAR=$(($VAR+1))
|
|
done
|
|
|
|
|
|
#osCsid=Host: .www.readerserver.de
|
|
#Name: osCsid
|
|
#Value: 8a497efe811cfd788283cb087ebd195d
|
|
#Path: /
|
|
#Secure: No
|
|
#Expires: At the end of the session
|