AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: DZpower on May 10, 2021, 06:37:45 PM

Title: # and Not having in #mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client
Post by: DZpower on May 10, 2021, 06:37:45 PM
can someone explain what is the difference between having a # and Not
what is the correct setting to have ?

#mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client

and

mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client
Title: Re: # and Not having in #mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client
Post by: Runway 31 on May 10, 2021, 07:52:12 PM
From reply 74 from the MLAT thread

The rbfeeder has this line built in, and provides it if this lines is commented out. This command starts the mlat-client

Commenting out is better from possible upgrade of rbfeeder in future which may require changing python3.7 to say python3.8 or 3.9 or 4. Commenting it out will force new version of rbfeeder to use correct version built into it.

Alan
Title: Re: # and Not having in #mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client
Post by: GlynH on May 11, 2021, 08:10:00 PM
can someone explain what is the difference between having a # and Not
what is the correct setting to have ?

#mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client

and

mlat_cmd=/usr/bin/python3.7 /usr/bin/mlat-client

Whenever you see the # character it indicates everything in the line following is commented out i.e. the line is ignored when the file is parsed for example;

# To enable feature X, uncomment the line below
#FeatureX = Enabled

It is also useful as a placeholder and/or marker for example rather than having to trawl through lines of code looking for a particular entry you will often see characters like # followed by a description to make it easier to locate a refernce amongst lines & lines of text.

Other characters you might see serving a similar purpose might be <!-- or // or * for example.

Hope that helps?

Kind regards,
-=Glyn=-