in reply to Re^3: backtick in perl 5.8 cgi under iis 6
in thread backtick in perl 5.8 cgi under iis 6

The cgi code wants to "run" an external process and capture its output for processing.

BTW - it's an intranet application; security is not a concern.

How can I achieve this without backticks?

Thanks.

  • Comment on Re^4: backtick in perl 5.8 cgi under iis 6

Replies are listed 'Best First'.
Re^5: backtick in perl 5.8 cgi under iis 6
by marto (Cardinal) on Feb 17, 2006 at 16:55 UTC
    cseelig,

    "BTW - it's an intranet application; security is not a concern."

    Yikes! IMHO security should always be a concern.
    Check out CGI Programming FAQ under Security for some interesting reading.
    Update: Also merlyn has a great article on the subject of security which I would advise reading.

    Martin
      Ok. So how would you do it?
      (Where "it" is to have a Perl cgi script invoke an external executable and capture the results for subsequent processing.)
Re^5: backtick in perl 5.8 cgi under iis 6
by runrig (Abbot) on Feb 17, 2006 at 16:45 UTC
    Have you tried supplying the full path to the exe?
    my $output = `c:/path/to/program.exe`;