c++ - How can I monitor Wifi status for Linux -


I want to write an application to monitor Wifi status, for example, if Linux connects to an AP, So I have a notification telling me that Wi-Fi is ready. What should I do if the "iw" and "wpa_cli" commands are available for the system? Create a new thread to scan WiFi every 5 seconds? Does anyone have a better solution for this? thank you in advanced.

We are currently experiencing a radical change in that part of the Linux system. You have heard about the systemd debate? systemd will replace the good old SysV Init. In this process of changes, the way to monitor network interfaces will also change. Although today's distrust solutions are based on the scripts introduced by init (or upstart (on Ubuntu), the upcoming distort systemd script I have not worked with systemd yet, but I found this document on the Networking Monitoring topic: All the distributions agree that they can be as soon as possible systemd , so using a future proof solution

Before / etc / network / You can add a script to if-up.d . The executable in that folder becomes an "every" interface that is called "code" if you have folders if-down.d , if-post-down.d , if-pre-up.d Will reach parameter scripts like interface IDs and some others For more information, Debian / U Check Bantu.

Other distortion can be your own mechanism.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -