What's new

Can't pipe content into text file - Help please!

astroboy100

New Around Here
I'm trying to setup my ClientVPN and the instructions tell me to enter in the following
echo "username" > /tmp/password.txt
echo "password" >> /tmp/password.txt

but when I do that and then look at the file it has 0 bytes and if I run the command cat /tmp/password.txt then the screen is blank.

Any ideas how I can get the required text into the file...the file gets created ok and has the following permissions: -rw-rw-rw-

Thanks!
 
Try to use this conf:
Code:
echo "username /password" > /tmp/openvpn-auth.conf
Code:
chmod +x /tmp/openvpn-auth.conf

You have double >> on one line and openvpn use .conf to password

octopus
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top