80 |
|
|
81 |
echo "" |
echo "" |
82 |
echo " Setting cookies to connect to spacetrack " |
echo " Setting cookies to connect to spacetrack " |
83 |
wget --post-data='identity=pam2006&password=Resurs05' --cookies=on --keep-session-cookies --save-cookies=.cookies.txt 'https://www.space-track.org/ajaxauth/login' -o/dev/null |
wget --post-data='identity=pam2006&password=Resurs_150606!!' --cookies=on --keep-session-cookies --save-cookies=.cookies.txt 'https://www.space-track.org/ajaxauth/login' -o/dev/null |
84 |
#wget -o /dev/null -O /dev/null --no-check-certificate --save-cookies .cookies.txt \ |
#wget -o /dev/null -O /dev/null --no-check-certificate --save-cookies .cookies.txt \ |
85 |
#"https://www.space-track.org/perl/login.pl?_submitted=1&username=$USER&password=$PASS" |
#"https://www.space-track.org/perl/login.pl?_submitted=1&username=$USER&password=$PASS" |
86 |
echo " Done!" |
echo " Done!" |
117 |
exit 1 |
exit 1 |
118 |
fi |
fi |
119 |
|
|
120 |
cp .tleretrieved.txt $OUTFILE |
#cp .tleretrieved.txt $OUTFILE |
121 |
|
|
122 |
|
cat .tleretrieved.txt | sed 's/0 RESURS DK-1/RESURS DK-1/g' | sed -e 's/\r//g' > $OUTFILE |
123 |
|
|
124 |
echo " File saved as $OUTFILE" |
echo " File saved as $OUTFILE" |
125 |
echo "" |
echo "" |