CGI and digital Camera Capture - Mailing list pgsql-cygwin

From Cygwin
Subject CGI and digital Camera Capture
Date
Msg-id c7uv5j$t5q$1@sea.gmane.org
Whole thread Raw
List pgsql-cygwin
I have a program that can take a picture with my digital camera from the
command line called PSRemoteTest.exe

I have Apache web server installed on my computer and can run CGI scripts.
*  I am creating a cgi script that will take a picture when it is run from
my web browser called test.cgi (see below)
* My program works from the command prompt when I type "perl test.cgi"-----
PSRemoteTest.exe takes a picture
* When the same cgi script is run from my web
browser -------PSRemoteTest.exe doesn't work only html is displayed.

How do I enable the Apache web server so it will run PSRemoteTest.exe?????

______________Apache error file says this___________________________________
[Thu May 13 14:31:01 2004] [notice] Child 632: Exit event signaled. Child
process is ending.
[Thu May 13 14:31:01 2004] [notice] Parent: Created child process 3056
[Thu May 13 14:31:01 2004] [notice] Child 3056: Child process is running
[Thu May 13 14:31:02 2004] [notice] Child 3056: Acquired the start mutex.
[Thu May 13 14:31:02 2004] [notice] Child 632: Released the start mutex
[Thu May 13 14:31:02 2004] [notice] Child 3056: Starting 250 worker threads.
[Thu May 13 14:31:03 2004] [notice] Child 632: Waiting for 250 worker
threads to exit.
[Thu May 13 14:31:03 2004] [notice] Child 632: All worker threads have
exited.
[Thu May 13 14:31:03 2004] [notice] Child 632: Child process is exiting
[Thu May 13 14:31:08 2004] [error] [client 127.0.0.1] PSRemote is not
running\r

____________________test.cgi______________________________________-
#!/perl/bin/perl

use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
print header;
print start_html("Looking Good");
print "<h1>Did I take a Picture?</h1>";
print end_html;


my @args = ("PSRemoteTest" );
system(@args) == 0
or &dienice();
print end_html;

sub dienice{
if ($? == -1){
print "failed to execute: $!\n";
}
elsif ($? & 127){
print "<h2>child died with coredump</h2>";
}
else {
print "<h2>child exited with value<\h2>";
}
}




pgsql-cygwin by date:

Previous
From: "Stanislaw Tristan"
Date:
Subject: Manual installation under Win XP
Next
From: Mike G
Date:
Subject: Re: Initdb fails - semctl invalid argument