Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: executing a program

by AcidHawk (Vicar)
on Oct 22, 2004 at 03:13 UTC ( [id://401408]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to executing a program

Hi,

We really need more info.

  • Are you looking for the output of the program you are trying to run to be displayed in the webpage?
  • Is the program you are trying to run a perl script or an exe?
  • Can you use a FORM with method="POST" action="yourprog.pl" ?
  • Can you use Win32::Process or Win32::Spawn to launch you prog?
    -----
    Of all the things I've lost in my life, its my mind I miss the most.
  • Replies are listed 'Best First'.
    Re^2: executing a program
    by Mercio (Scribe) on Oct 22, 2004 at 15:19 UTC
      You guys have all been realy realy good help. To asnwer a few questions, I have no clue what a deamon process is and I do have access to the webserver, it's in my room. To answer AcidHawk's question,

    • No, I am not looking for the output in the webpage.
    • The program is a perl script.
    • I could us a form with method post, but i don't know what that would accomplish since i'm not sending data to the perl script and I want the perl script to run even when i close the webpage.
    • I will take a look at Win32::Process and Win32::Spawn and see, but I don't know why I couldn't. I just don't know what they are.
        Posting code that you think is not working also helps us find issues quickly..

        Could it be that you need to specify the perl binary before the script.. ie

        exec("C:/Perl/bin/perl.exe myscript.pl");
        -----
        Of all the things I've lost in my life, its my mind I miss the most.

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://401408]
    help
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Notices?
      hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
      erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.