dotfiles/home/bin/vpnip

5 lines
130 B
Plaintext
Raw Normal View History

#!/bin/bash
ssh -t login.wipeos.com "grep $1 /var/log/openvpn/openvpn-status.log" 2>/dev/null | cut -d$'\n' -f2 | cut -d',' -f1