View Single Post
Posts: 23 | Thanked: 2 times | Joined on Nov 2007
#10
AFAIK, you can't use the pipe '|' to chain commands like that, it's meant for piping output of one command to another.

What you want to do is execute
cd /etc/openvpn && openvpn --config n800remote.ovpn
It would be simpler to just use full paths in one command, though, like so:
openvpn --config /etc/n800remote.ovpn
In this case, you'll have to use the full paths in your configuration file as well, so for example
ca /etc/openvpn/CA.crt
instead of just
ca CA.crt