Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

schedule.sh 676 B

6 lat temu
6 lat temu
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