Is there a simple way to get the Meteohub version from a command line (ssh)?
I grep'ed /etc/* and /home/meteohub/* but could not find anything.
How do I get the Meteohub version from a command line?
Moderator: Mattk
Re: How do I get the Meteohub version from a command line?
/srv/www/cgi-bin/meteohub.cgi | grep "MeteoHub:" | awk '{print $2}'
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re: How do I get the Meteohub version from a command line?
Or if you want to go more fancy:
Code: Select all
mh_version=`wget -q -O - "http://localhost/meteograph.cgi?text=actual_system_version_text"`
mh_build=`wget -q -O - "http://localhost/meteograph.cgi?text=actual_system_build_num"`
echo $mh_version" "$mh_build
Re: How do I get the Meteohub version from a command line?
Thanks. These both seem to work.