running and manipulating an executable.

Posted on 2004-11-04
Last Modified: 2010-03-05
I would like to start a program and then manipulate it without loosing the process.  I see it as a simple process but am not able to find a solution.  i would like to use Win32::CtrlGUI for it but that particular module won't start the executable.  there are other methods of starting the executable like Win32::Process and Win32::Spawn but both seem to hang.

Any suggestions will be appreciated.
Question by:ralphsauto
    LVL 8

    Expert Comment

    Hi ralphsauto,

    try use threads or Thread modules.  Upgrade your ActivePerl to 5.8 to use those (prior to 5.8 the implementation was not stable/good).


    Author Comment

    Thanks for the idea, but I don't understand how this would do what I want it to.  Let's Take a blank notepad for example, how would I enter information into it then print it and exit the program with a script?

    Author Comment

    Would not fork() be a better way to do things?

    Author Comment

    I am using activestate perl on win2000

    Author Comment

    Can you give me a brief tutorial as to how to use threads or fork?
    LVL 6

    Accepted Solution

    Perhaps you do not want it more complicated than it should be.
    Would you like to just Automate End-User input for the started application based on the buttons and screens available within the application?
    Easier than Perl is AutoIt utility.


    Author Comment

    Thanks for your suggestion, I have done some looking but can you give me some pointers to use?  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now