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.

You must log in to answer this question.

Browse other questions tagged .