[aprssig] Predict question

John Ronan jronan at tssg.org
Sun Dec 30 06:26:21 EST 2007


On 30 Dec 2007, at 07:17, Andrew Rich wrote:

> I ran a script
>
> #!/bin/sh
> 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/cubesat.txt -O cubesat.txt
> /usr/bin/predict -u amateur.txt visual.txt cubesat.txt
>
> But it was only when I stopped the server I had running, and  
> restarted it that the keps were used.
>
> I had a 5 degree difference between NOVA and predict.
>
> When I restarted predict, then predict matched NOVA.
>
> Is there a way to hit predict on the fly , or does a server re- 
> start have to be carried out ?

I couldn't really find a good clean way of doing it.

>
I remember running 'predict -s' from inittab  then calling the  
following script from crontab
root at ns1:/home/predict# cat update_keplers
#!/bin/sh
cd /home/predict
# Remove old keps
/bin/rm -f amateur.txt
#
#/bin/date
# Get new keps
/usr/bin/wget http://www.celestrak.com/NORAD/elements/amateur.txt
# update Predicts TLE Database
/usr/bin/predict -u amateur.txt
#
# Restart Predict
/bin/kill -TERM `ps ax | grep "predict -s" | grep -v grep| awk  
'{print $1}'`
root at ns1:/home/predict#

I must look for the scripts to run it from inittab

John

>
> ---------------------------------------------------------------------- 
> ------
> Andrew Rich VK4TEC
>
>
> _______________________________________________
> aprssig mailing list
> aprssig at lists.tapr.org
> https://lists.tapr.org/cgi-bin/mailman/listinfo/aprssig

--
John Ronan <jronan at tssg.org>, +353-51-302938
Telecommunications Software &  Systems Group,  http://www.tssg.org







More information about the aprssig mailing list