You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

schedule.sh 676 B

6 vuotta sitten
6 vuotta sitten
6 vuotta sitten
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