/[PAMELA software]/chewbacca/YodaProfiler/docs/retrieve_TLE.sh
ViewVC logotype

Diff of /chewbacca/YodaProfiler/docs/retrieve_TLE.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mocchiut, Thu Aug 22 09:03:27 2013 UTC revision 1.8 by mocchiut, Wed Jun 3 08:10:45 2015 UTC
# Line 80  echo " Today is $YEAR/$MONTH/$DAY" Line 80  echo " Today is $YEAR/$MONTH/$DAY"
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!"
# Line 117  if [[ `wc -l < .tleretrieved.txt` -le 2 Line 117  if [[ `wc -l < .tleretrieved.txt` -le 2
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 ""

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.23