0

I'm tired to put username in this input by bash script i run the script but what shall i do when i rich to this line its expecting to input username

Vpn.sh: 1: H8JPgidIAO7T43IP: not found
Vpn.sh: 1: TEL5Fl5bZ6y857IihRmMKEJT0knhxutW: not found
🔐 Enter Auth Username: 
2
  • Those "not found" errors are ominous. If there's a bug in your bash script, please provide the script for us to look at. Commented May 13, 2022 at 10:19
  • i try to run vpn script but by bash script and add username and password automatically Commented May 13, 2022 at 11:02

1 Answer 1

1

You can use expect:

#!/usr/bin/expect

spawn Vpn.sh  
expect  "Enter Auth Username:"   
send "ThePassword\r"
expect eof
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.