1

I am using the integrated VPN client in OS X and its working great.

I found out that I can have the time connected displayed and was wondering if I could get the total time connected as a variable of some sort.

One way that I'd be able to do it, is to start the connection through shell and get the amount of time that the terminal process was alive, but surely there's an easier way, since it already holds the information somewhere.

I've started looking into scutil and networksetup, but can't seem to see an immediate place where I can extract this specific piece of data.

Thanks a lot.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.