Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to suppress prompt?

 
sumit mathur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using storeUserConfig() API to encrypt the username and password as

storeUserConfig('/opt/fsm/domains/mydomains/myuserconfigfile.secure','/opt/fsm/domains/mydomains/myuserkeyfile.secure')

As soon as i run this command it prompt for user confirmation as

Creating the key file can reduce the security of your system if it is not
kept in a secured location after it is created. Do you want to create the
key file? y or n


Is there any way to suppress this message and by default allow "y" as input???

I am more concern abt it because i am using .PY script to execute this API and i dont want user interaction while running this script.


sumit



 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your script. I will try playing around with it if I can
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic