http://www.perlmonks.org?node_id=991317


in reply to Re^2: Calling an executable and entering login credentials
in thread Calling an executable and entering login credentials

Batch files don't ask for passwords. Programs invoked by the batch files do that. Look at the batch file, find out which program asks for a password, read its documentation and find a way to pass the password on the command line. Or look at tools like AutoIt that are written to interact with GUIs.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: Calling an executable and entering login credentials

Replies are listed 'Best First'.
Re^4: Calling an executable and entering login credentials
by Thomas Kennll (Acolyte) on Sep 02, 2012 at 18:38 UTC
    Yeah.. There are some java programs doing that.. Is there anyway, that I can call the batch files from the script and then input the credentials using some modules ?
      You can try Win32::GuiTest, it seems it's able to send clocks and keystrokes to windows. Also you can use AutoHotKey or AutoIt to write a credentials-entering program, but this is not Perl.
      Sorry if my advice was wrong.