change update-keps.sh to create tmp directory

This commit is contained in:
Dr Paul Brewer 2014-09-29 00:54:16 +00:00
parent 0977f2ee4d
commit 1ca1f726a3
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# mostly from PREDICT man page by KB2BD # mostly from PREDICT man page by KB2BD
cd ./keps # Suitable as a cron.weekly script
mkdir -p /tmp/keps
cd /tmp/keps
rm -f amateur.txt visual.txt weather.txt rm -f amateur.txt visual.txt weather.txt
wget -qr www.celestrak.com/NORAD/elements/amateur.txt -O amateur.txt wget -qr www.celestrak.com/NORAD/elements/amateur.txt -O amateur.txt
wget -qr www.celestrak.com/NORAD/elements/visual.txt -O visual.txt wget -qr www.celestrak.com/NORAD/elements/visual.txt -O visual.txt