[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] cgi-wrap problem - expansion on
- Subject: [cobalt-developers] cgi-wrap problem - expansion on
- From: "cLive ;-)" <clive@xxxxxxxxxxxxxxxx>
- Date: Fri Mar 3 08:32:13 2000
Hi all,
expansion on problem Tony posted earlier.
The script below works from the command line, and looks like it should run
through http... but doesn't.
Error:
[Fri Mar 3 01:31:11 2000] [warn] [client 195.59.0.41] handler "cgi-wrapper"
not found for: /home/sites/site4/web/cgi-bin/<script name removed>.cgi
It's only a quick PGP test script, so excuse the roughness. If anyone has
any thoughts on why we're getting the cgi-wrap error, they'd be greatly
appreciated.
Script's below
cLive ;-)
#!/usr/bin/perl
my $user_id = 'Clive Holloway <pgptest@xxxxxxxxxxxxxxxx>';
my $pgp_path = '/usr/local/bin/pgp';
my $temp_dir = '/tmp';
# lets encrypt a message;
my $temp_file = $temp_dir.'/'.$$.'asc';
print "Content-type: text/plain\n\n";
open (PGP, "|$pgp_path -feat +verbose=0 \"$user_id\" > $temp_file")
|| show_error("Can't open $pgp_path!");
print PGP "This is a test encryption\n";
close PGP;
open (PGPFILE, "$temp_file");
while(<PGPFILE>) {
print;
}
close (PGPFILE);
unlink($temp_file);
exit(0);
sub show_error {
my ($tmp) = @_;
print $tmp;
}