LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Turbocapitalist
Forum: Programming 02-14-2024, 05:16 AM
Replies: 18
Views: 406
Posted By Turbocapitalist
Specifically, AWK can handle floating point to an...

Specifically, AWK can handle floating point to an extent, Bash cannot. Bash itself handles only integers.
Forum: Programming 02-14-2024, 05:11 AM
Replies: 18
Views: 406
Posted By Turbocapitalist
Thanks. $1 will be...

Thanks. $1 will be solar_assistant/inverter_1/ac_output_voltage/state and $2 will be 230.0 because white space is the default field separator (FS) in AWK.

You can narrow the subscription there...
Forum: Programming 02-14-2024, 04:39 AM
Replies: 18
Views: 406
Posted By Turbocapitalist
It would depend on what you are getting from...

It would depend on what you are getting from Mosquitto.

Please show some sample lines of output from mosquitto_sub as you have it configured and we can guess.

Also port 1883 implies that you...
Forum: Programming 02-14-2024, 03:59 AM
Replies: 18
Views: 406
Posted By Turbocapitalist
The program mosquitto_sub is going to stay...

The program mosquitto_sub is going to stay running and you won't get just one result in $()

I'd move the work into AWK:


mosquitto_sub -h 192.168.8.119 -p 1883 -v -t '#' -C 15 \
| awk...
Showing results 1 to 4 of 4

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration