25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

schedule.sh 1.0 KiB

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