Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by hippo (Monsignor)
on Oct 24, 2013 at 09:01 UTC ( #1059417=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^4: Use a perl variable on a command that prompts for input

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059417]
help
Chatterbox?
Corion munches on the traditional German winter fruit, strawberries. Imported from Spain at the price of EUR 0.77 per 150g - not really cheap but surprisingly good for a winter produce
Discipulus straberries portable edition
[Corion]: Discipulus: Haha ;) I hadn't made the connection to Strawberry Perl at all ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-01-20 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.