How can I automate inputting text into a prompt?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
-2
down vote
favorite
new Linux user here. I was trying to automate the launch of OpenVPN, by placing this code into a .sh file and then launching it.
openvpn --config vpnbook-us1-tcp443.ovpn
After executing this command, I am brought to a text prompt where I am supposed to input the username (vpnbook) and then the password. Is there a command that will allow me to automatically input these two sections of text so that I don't have to type them in every time? Thanks.
kali-linux openvpn
add a comment |Â
up vote
-2
down vote
favorite
new Linux user here. I was trying to automate the launch of OpenVPN, by placing this code into a .sh file and then launching it.
openvpn --config vpnbook-us1-tcp443.ovpn
After executing this command, I am brought to a text prompt where I am supposed to input the username (vpnbook) and then the password. Is there a command that will allow me to automatically input these two sections of text so that I don't have to type them in every time? Thanks.
kali-linux openvpn
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
new Linux user here. I was trying to automate the launch of OpenVPN, by placing this code into a .sh file and then launching it.
openvpn --config vpnbook-us1-tcp443.ovpn
After executing this command, I am brought to a text prompt where I am supposed to input the username (vpnbook) and then the password. Is there a command that will allow me to automatically input these two sections of text so that I don't have to type them in every time? Thanks.
kali-linux openvpn
new Linux user here. I was trying to automate the launch of OpenVPN, by placing this code into a .sh file and then launching it.
openvpn --config vpnbook-us1-tcp443.ovpn
After executing this command, I am brought to a text prompt where I am supposed to input the username (vpnbook) and then the password. Is there a command that will allow me to automatically input these two sections of text so that I don't have to type them in every time? Thanks.
kali-linux openvpn
asked 2 days ago
Korish
31
31
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Create a file to hold your auth details, with the first line being that username and the second being your password.
You can then modify your .ovpn file, adding a line:auth-user-pass THATFILE
That should automatically handle those details for you.
Thanks a lot, got it to work!
â Korish
2 days ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Create a file to hold your auth details, with the first line being that username and the second being your password.
You can then modify your .ovpn file, adding a line:auth-user-pass THATFILE
That should automatically handle those details for you.
Thanks a lot, got it to work!
â Korish
2 days ago
add a comment |Â
up vote
3
down vote
accepted
Create a file to hold your auth details, with the first line being that username and the second being your password.
You can then modify your .ovpn file, adding a line:auth-user-pass THATFILE
That should automatically handle those details for you.
Thanks a lot, got it to work!
â Korish
2 days ago
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Create a file to hold your auth details, with the first line being that username and the second being your password.
You can then modify your .ovpn file, adding a line:auth-user-pass THATFILE
That should automatically handle those details for you.
Create a file to hold your auth details, with the first line being that username and the second being your password.
You can then modify your .ovpn file, adding a line:auth-user-pass THATFILE
That should automatically handle those details for you.
answered 2 days ago
Pat Gunn
1212
1212
Thanks a lot, got it to work!
â Korish
2 days ago
add a comment |Â
Thanks a lot, got it to work!
â Korish
2 days ago
Thanks a lot, got it to work!
â Korish
2 days ago
Thanks a lot, got it to work!
â Korish
2 days ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460559%2fhow-can-i-automate-inputting-text-into-a-prompt%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password