1 2 3 4 5 6 7 8 9
#!/bin/bash VPNC_FILE='/var/run/vpnc.pid' if [[ -e "${VPNC_FILE}" ]]; then echo "on" echo "on" echo "" fi