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

ok so i have installed active perl..(winnt//iis4) I write a simple "hello world" script and it works fine - the page is output correctly. now i need to call up an executable file on the server. say i have test.exe lets even say its in the cgi-bin how do i call the program? i just want the program test.exe to execute on the server. it doesnt need to interact with anything just run.

Replies are listed 'Best First'.
Re: Launcing Executables in CGI
by chromatic (Archbishop) on Mar 09, 2001 at 09:39 UTC
Re: Launcing Executables in CGI
by tune (Curate) on Mar 09, 2001 at 09:38 UTC
    Have a look at perlfunc:exec or perlfunc:system.

    __UPD__ (next time dig it for yourself, it was a very basic question. Some elder monks won't like this node)

    -- tune

Re: Launcing Executables in CGI
by Gremlin (Acolyte) on Mar 11, 2001 at 08:47 UTC
    I have used the system() command it works pretty well in the command line but when calling the script from a browser the function does not execute just that part of the script nothing happens the rest of the script runs well
Re: Launcing Executables in CGI
by Anonymous Monk on Mar 09, 2001 at 14:10 UTC
    You already have the basic answer you were looking for,
    but I thought I would mention that the program "test.exe"
    isn't going to run "on your server", the program executable
    is going to load and execute on the client computer you call
    the program from.

    Not being a MSDOS kinda guy, I'm not sure how you would do
    the remote run type of thing, I know that you can do it
    with the unix and linux systems, and that there probably is
    a method of doing this

    Maybe one of the other Monks will have something on that
    now that the distiqution is made.