Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Need Command to Hit Enter

by koti688 (Sexton)
on May 19, 2009 at 04:57 UTC ( [id://764833]=perlquestion: print w/replies, xml ) Need Help??

koti688 has asked for the wisdom of the Perl Monks concerning the following question:

I need to Hit Enter while running a .exe file from perl which genreates me a .conf after hitting Enter.
How to hit "enter" through perl.??

or is my question is looking weired :(

when i run the script it is asking me for press any key or hit enter in the middle of the Script

Replies are listed 'Best First'.
Re: Need Command to Hit Enter
by GrandFather (Saint) on May 19, 2009 at 05:21 UTC

    Win32::GuiTest will do it for you on Windows.


    True laziness is hard work
Re: Need Command to Hit Enter
by codeacrobat (Chaplain) on May 19, 2009 at 05:23 UTC
    Have you tried echo?
    system q{echo | perl -e \"<STDIN>\"}

    print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
Re: Need Command to Hit Enter
by bichonfrise74 (Vicar) on May 20, 2009 at 01:18 UTC
    Can you try something like this?
    <>; Generate_conf_file();

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://764833]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found