1

I want to automatically input in a command line. I am using openshift command for this. So when i type oc login https://.... it asks for username and password.

 $ oc login https://......
   Username:  (after putting and pressing enter, password is next)
   Password:

So i want to automatically login with just one command, I've seen many tutorials but the input is only yes or no. For example $ echo yes | script.sh . But how about the situation above? Thanks.

jww
  • 97,681
  • 90
  • 411
  • 885
bitcenture
  • 29
  • 3

0 Answers0