--- chewbacca/YodaProfiler/docs/retrieve_TLE.sh 2011/02/28 15:23:36 1.3 +++ chewbacca/YodaProfiler/docs/retrieve_TLE.sh 2012/04/04 09:55:11 1.5 @@ -80,20 +80,25 @@ echo "" echo " Setting cookies to connect to spacetrack " -wget -o /dev/null -O /dev/null --save-cookies .cookies.txt \ -https://www.space-track.org/perl/login.pl --post-data="_submitted=1&username=$USER&password=$PASS" +wget -o /dev/null -O /dev/null --no-check-certificate --save-cookies .cookies.txt \ +"https://www.space-track.org/perl/login.pl?_submitted=1&username=$USER&password=$PASS" echo " Done!" echo "" echo " Retrieving Resurs-DK1 TLEs 2006-2009" -wget -o /dev/null -O - --load-cookies .cookies.txt \ +wget -o /dev/null -O - --no-check-certificate --load-cookies .cookies.txt \ --save-cookies .cookies.txt --keep-session-cookies \ -https://www.space-track.org/perl/id_query.pl --post-data="_submitted=1&_sessionid=&ids=29228&timeframe=timespan&start_year=2006&start_month=6&start_day=14&end_year=2009&end_month=12&end_day=31&common_name=yes&sort=&descending=&ascii=yes&_submit=Submit&_reset=Reset" \ +"https://www.space-track.org/perl/id_query.pl?_submitted=1&_sessionid=&ids=29228&timeframe=timespan&start_year=2006&start_month=6&start_day=14&end_year=2009&end_month=12&end_day=31&common_name=yes&sort=&descending=&ascii=yes&_submit=Submit&_reset=Reset "\ | egrep "1|2|R" > .tleretrieved.txt -echo " Retrieving Resurs-DK1 TLEs >=2010" -wget -o /dev/null -O - --load-cookies .cookies.txt \ +echo " Retrieving Resurs-DK1 TLEs 2010-2011" +wget -o /dev/null -O - --no-check-certificate --load-cookies .cookies.txt \ --save-cookies .cookies.txt --keep-session-cookies \ -https://www.space-track.org/perl/id_query.pl --post-data="_submitted=1&_sessionid=&ids=29228&timeframe=timespan&start_year=2010&start_month=1&start_day=1&end_year=$YEAR&end_month=$MONTH&end_day=$DAY&common_name=yes&sort=&descending=&ascii=yes&_submit=Submit&_reset=Reset" \ +"https://www.space-track.org/perl/id_query.pl?_submitted=1&_sessionid=&ids=29228&timeframe=timespan&start_year=2010&start_month=1&start_day=1&end_year=2011&end_month=12&end_day=31&common_name=yes&sort=&descending=&ascii=yes&_submit=Submit&_reset=Reset"\ +| egrep "1|2|R" >> .tleretrieved.txt +echo " Retrieving Resurs-DK1 TLEs >=2012" +wget -o /dev/null -O - --no-check-certificate --load-cookies .cookies.txt \ +--save-cookies .cookies.txt --keep-session-cookies \ +"https://www.space-track.org/perl/id_query.pl?_submitted=1&_sessionid=&ids=29228&timeframe=timespan&start_year=2012&start_month=1&start_day=1&end_year=$YEAR&end_month=$MONTH&end_day=$DAY&common_name=yes&sort=&descending=&ascii=yes&_submit=Submit&_reset=Reset "\ | egrep "1|2|R" >> .tleretrieved.txt echo " Done!" echo ""