Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Calling an executable and entering login credentials

by afoken (Parson)
on Sep 02, 2012 at 17:57 UTC ( #991317=note: print w/ replies, xml ) Need Help??


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
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-09-20 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls