Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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

Replies are listed 'Best First'.
Re^4: Use a perl variable on a command that prompts for input
by hippo (Monsignor) 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?
[Corion]: If all else fails, Spreadsheet::XLSX should be "installable" by manually copying the files, provided that the prerequisites are met
[thezip]: It fails in the "formatted 2-digit numeric" tests
[thezip]: Okay Corion, that's what I wanted to hear. Thanks!
[Corion]: Oh, a test failure... Just force-install it then? --force and potentially --notest to skip the tests alltogether ?
[ambrus]: thezip: is Activestate Perl usable for your scenario instead?
[MidLifeXis]: Yeah, --notest is good, not sure I would do --force.
[thezip]: It fails 2/10 tests in that group. What are the ramifications if I force it? What should I look for for?
[thezip]: I've migrated from ActiveState to Strawberry. No going back...
[thezip]: I'll try the --notest arg first when I get back from meetings (after lunch).
[thezip]: Thanks guys for your comments! :-)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2017-03-23 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (290 votes). Check out past polls.