Skip site navigation (1) Skip section navigation (2)

CGI and digital Camera Capture

From: "Cygwin" <correy(dot)edmed(at)iinet(dot)net(dot)au>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: CGI and digital Camera Capture
Date: 2004-05-13 04:56:18
Message-ID: c7uv5j$t5q$1@sea.gmane.org (view raw or flat)
Thread:
Lists: 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

Next:From: Bertrand PoulainDate: 2004-05-13 08:06:16
Subject: Cygwin & NTFS
Previous:From: Phil WalkerDate: 2004-05-01 19:48:13
Subject: Re: postmaster cygwin1.dll SIGSEGV problem, easy to duplicate.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group