Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Use a perl variable on a command that prompts for input

by andyarp (Initiate)
on Oct 23, 2013 at 00:38 UTC ( #1059259=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Use a perl variable on a command that prompts for input
in thread Use a perl variable on a command that prompts for input

I tried the "Echo" option, but i kept getting "the handle is invalid", so i think it may be a no-go.


Comment on Re^3: Use a perl variable on a command that prompts for input
Re^4: Use a perl variable on a command that prompts for input
by hippo (Curate) on Oct 24, 2013 at 09:01 UTC

    Did you test it in the shell before embedding it in your perl script as suggested? If so, did it work there?

    If you can pipe input at the shell prompt you can almost certainly do so in the perl script. Otherwise you'll probably have to resort to Expect or similar. Good luck.

Re^4: Use a perl variable on a command that prompts for input
by andyarp (Initiate) on Oct 26, 2013 at 06:13 UTC

    I did try it in the regular console and it returned with

    an error occured (code 0x80070006): The handle is invalid.

    The problem with this is it prompts for the pin, and then prompts to confirm.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-09-17 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (100 votes), past polls