in reply to Re^4: Need help in while entering password
in thread Need help in while entering password

Hi, I need one more help on this to solve this issue. Now I have changed it as @trans_file = ("/Q"." "."c:\\eqsys.txt"." "."sftp://$username:"\@"."$server"); It asks for password in the screen and wait for user input to enter the password. like - Enter password :<Type password> and hit enter to move to next action. Is it possible to pass the password through script? Regards, Anand Mathan.

  • Comment on Re^5: Need help in while entering password

Replies are listed 'Best First'.
Re^6: Need help in while entering password
by AnomalousMonk (Archbishop) on Aug 20, 2013 at 04:37 UTC
    It asks for password in the screen and wait for user input to enter the password. ... Is it possible to pass the password through script?

    It is certainly possible to have your script interact with another application as if it were a user. I think this would be done with a module like Expect, but I personally have no experience with this module or with this sort of application-application interaction. Maybe open a fresh thread in SoPW with a title like "How Can My Script Submit a Password when Prompted by an Application?", or use Super Search with similar search terms.