in reply to Re^2: System call within cgi script
in thread System call within cgi script

You should probably try again with a command-line only program. Unless you're running the server on the actual client that requests the page starting gui programs from a CGI is never going to do anything useful.

Replies are listed 'Best First'.
Re^4: System call within cgi script
by pmcaveman (Novice) on Jan 29, 2007 at 21:14 UTC
    Sorry, this is not a choice for me. I am migrating an old Apache/netscape system on a SUN computer, so these functions _used_ to work with apache, but apparently no longer (due to security enhancements, no doubt). The code is riddled with system calls, and I need to actually call firefox and pass in a local cgi script name with parameters.

    It was really good to see the notepad task running with no gui. That is a good lead, at any rate. I was wondering why the system call would hang and not produce an answer. The task for notepad was owned by system -- would that make a difference?

    The last change I did was to close(STDOUT) and close (STDIN) just vefore the system call. I recall seeing that in an FAQ somewhere around these parts... It didn't seem to have an effect though.

    So, this is obviously an Apache/Perl problem. I have searched around for Apache help, and left some notes on http://groups.google.com/group/comp.infosystems.www.servers.ms-windows, but no answers/ideas yet.

    BTW, is there an easy way to find a tree view of my threads?