Page 1 of 1
					
				How do I get the Meteohub version from a command line?
				Posted: Sun Apr 26, 2015 1:02 am
				by mfarmwald
				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.
			 
			
					
				Re: How do I get the Meteohub version from a command line?
				Posted: Sun Apr 26, 2015 9:28 am
				by admin
				/srv/www/cgi-bin/meteohub.cgi | grep "MeteoHub:" | awk '{print $2}'
			 
			
					
				Re: How do I get the Meteohub version from a command line?
				Posted: Sun Apr 26, 2015 12:55 pm
				by YJB
				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?
				Posted: Sun Apr 26, 2015 4:10 pm
				by mfarmwald
				Thanks. These both seem to work.