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

Hi Monks,

I have one doubt, is any option to run or call exe in a cgi page.

Thanks in advance,
Shanmugam A.

Note:
My web server is Appache

Replies are listed 'Best First'.
Re: Any option to call exe in cgi page
by dHarry (Abbot) on Oct 28, 2008 at 10:43 UTC
Re: Any option to call exe in cgi page
by ccn (Vicar) on Oct 28, 2008 at 10:41 UTC

    Please clarify. Do you want to execute program at server side? Or may be you want launch exe at client side?

      Hi CCN

      After selecting the file from dropdown box in CGI page,
      i have to insert some text in that selected pdf file for that i am using exe.
      After that i need to upload the edited pdf file.

      So, I need to execute program at server side.

      Thanks in advance

      Shanmugam A.
        OK. Than you can use system or backticks to execute a program from your script

        Some clarity still missing for me (YMMV)

        1. After selecting the file from dropdown box in CGI page,
        2. i have to insert some text in that selected pdf file for that i am using exe.
        3. After that i need to upload the edited pdf file.
           
        4. So, I need to execute program at server side.

        So, despite OP's final statement, I don't think this unambiguously means modification of the .pdf on the server side.

        Line by line:

        1. Probably means server side...unless "dropdown" really refers to a upload-selection-box (ie: user at client selecting a file from the client machine).
        2. Appears to mean OP is using a Windows .exe to modify the .pdf: At the client or at the server NOT determined as server could be running on 'doze.
        3. Use of "upload" instead of "save" or "e;write" suggests transmission from the client to the server
          in which case
        4. execution of the .exe may be anticipated on the client side.

        That would be "a whole 'nuther case," so, I seek clarification.

Re: Any option to call exe in cgi page
by DrHyde (Prior) on Oct 28, 2008 at 11:07 UTC
    print "Content-type: text/plain\n\n"; exe(); sub exe { print "You just called exe()!" }
      Mr Hyde, where is Dr Jekyll?

        You really don't want to know!