expresso icon indicating copy to clipboard operation
expresso copied to clipboard

Cannot properly make use of 'status' in a cmd script

Open unalignedcoder opened this issue 2 years ago • 1 comments

Expresso status works very well, but cannot really be used in a script.

Rather than returning a full sentence, it would be great if it could return a simple boolean value of 0 or 1.

Suppose the user needs first of all to find out whether the VPN is connected.

In a simple batch script in cmd language, it is a pain to break apart the sentences "VPN connected to server" or "VPN not connected", to figure out their actual value.

I understand the full sentence actually comes from ExpressVPN, not by Expresso.

Still, is there any way to get status to return a machine-readable value?

unalignedcoder avatar May 01 '22 05:05 unalignedcoder