Testing whether the VPN is running?
Adam Funk
a24061 at ducksburg.com
Thu Feb 18 04:26:58 EST 2016
I'd like to test (inside a python 3 program) whether the VPN is
running or not. The only thing I can think of so far is to use
subprocess to run the 'ifconfig' command, then check its output for
'tun0'. Is there a better way?
Thanks.
--
Nam Sibbyllam quidem Cumis ego ipse oculis meis vidi in ampulla
pendere, et cum illi pueri dicerent: beable beable beable; respondebat
illa: doidy doidy doidy. --- plorkwort
More information about the Python-list
mailing list