M
M
martensit2018-10-26 22:19:15
CentOS
martensit, 2018-10-26 22:19:15

In what language and what library is it easier to write a PPPOE connection management script for CentOS 7?

We need a small script that breaks and creates a PPPOE connection after a certain period of time. What language and library to use for this purpose in CentOS 7.
For Windows, I wrote on VS 2017 + Net Framework 2.0
The same needs to be done for CentOS 7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2018-10-27
@martensit

Most likely, python using some of its bindings for network-manager.
But nothing prevents you from writing in C ++, for example, and communicating with network-manager via d-bus.
Or even run nmcli as an external process with the necessary parameters.
If, at the same time, you do not need to change the connection configuration, and there is no complicated schedule, then in general you can get by with a couple of bash scripts and cron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question