您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819
  1. #!/bin/sh
  2. ## debug
  3. #set -x
  4. . ~/.noaa.conf
  5. wget -qr https://www.celestrak.com/NORAD/elements/weather.txt -O "${NOAA_HOME}"/predict/weather.txt
  6. grep "NOAA 15" "${NOAA_HOME}"/predict/weather.txt -A 2 > "${NOAA_HOME}"/predict/weather.tle
  7. grep "NOAA 18" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle
  8. grep "NOAA 19" "${NOAA_HOME}"/predict/weather.txt -A 2 >> "${NOAA_HOME}"/predict/weather.tle
  9. #Remove all AT jobs
  10. for i in $(atq | awk '{print $1}');do atrm "$i";done
  11. #Schedule Satellite Passes:
  12. "${NOAA_HOME}"/schedule_sat.sh "NOAA 19" 137.1000
  13. "${NOAA_HOME}"/schedule_sat.sh "NOAA 18" 137.9125
  14. "${NOAA_HOME}"/schedule_sat.sh "NOAA 15" 137.6200