Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 160130
Collapse All | Expand All

(-)predict-update.old (-8 / +12 lines)
Lines 1-8 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
PV=
2
oldpwd=$PWD
3
3
4
if [ ! -f ~/.predict/predict.tle ]; then
4
if [ ! -f ~/.predict/predict.tle ]; then
5
	oldpwd=$PWD
6
	mkdir -p ~/.predict
5
	mkdir -p ~/.predict
7
	cd ~/.predict
6
	cd ~/.predict
8
	cat > predict.tle << EOF
7
	cat > predict.tle << EOF
Lines 79-88 Link Here
79
1 26929U          02216.67548843  .00042169  00000-0  00000-0 0     9
78
1 26929U          02216.67548843  .00042169  00000-0  00000-0 0     9
80
2 26929  67.0426 246.5544 0011326 237.9129 122.0981 15.57367567 47636
79
2 26929  67.0426 246.5544 0011326 237.9129 122.0981 15.57367567 47636
81
EOF
80
EOF
82
	cd $oldpwd
83
fi
81
fi
84
wget -qc www.celestrak.com/NORAD/elements/amateur.txt -O /tmp/amateur.txt
82
85
wget -qc www.celestrak.com/NORAD/elements/visual.txt -O /tmp/visual.txt
83
mkdir /tmp/predict-$$ || exit 1
86
wget -qc www.celestrak.com/NORAD/elements/weather.txt -O /tmp/weather.txt
84
cd /tmp/predict-$$
87
predict -u /tmp/amateur.txt /tmp/visual.txt /tmp/weather.txt
85
88
rm /tmp/amateur.txt /tmp/visual.txt /tmp/weather.txt
86
wget -qc www.celestrak.com/NORAD/elements/amateur.txt -O ./amateur.txt
87
wget -qc www.celestrak.com/NORAD/elements/visual.txt -O ./visual.txt
88
wget -qc www.celestrak.com/NORAD/elements/weather.txt -O ./weather.txt
89
predict -u ./amateur.txt ./visual.txt ./weather.txt
90
91
cd ${oldpwd}
92
rm -fr /tmp/predict-$$

Return to bug 160130