Send to a Friend

saservp's avatar

Can you translate a line of bash into plain english for me?

Asked by saservp (291points) August 12th, 2011

I vaguely understand what this is doing, but can someone translate it into layman’s english:

while :; do sleep 1; ps | grep openvpn && killall openvpn && break || continue; done

echo “username
password” > /tmp/openvpncl/auth.conf

openvpn

In particular, is it checking if openvpn dies and then restarts it? And how often does it check? every “1” minute/second?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.