W/help from Matt C. This worked:

#!/usr/local/bin/perl -w
 use CGI qw(:standard);
 use strict;
my $myurl = "http://www.quantifier.org/phpquant/";;

print redirect( -URL => $myurl);
exit;

(His suggestion was this:

#!/usr/local/bin/perl -w
 use CGI qw(:standard);
 use strict;
my $myurl = "http://www.quantifier.org/phpquant/";;

print header,
    start_html ('TESTING!!'),
    h2("Location: $myurl\n\n"),
    end_html;

However, that wasn't what I needed...

Thanks!

KeN
_____________________________________
http://quantifier.org GnuPG: 7C828670
 11:00pm  up 10 days,  6:45
Asleep at the switch!  I wasn't asleep!  I was drunk!

                -- Homer Simpson
                   Homer The Vigilante

---------- Forwarded message ----------
Date: Sun, 30 Dec 2001 21:25:24 -0500 (EST)
From: KeN ClarK <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: redirect to URL[linux,apache]

1. I'm VERY new.
2. I have the Perl Cookbook & Learning Perl.
3. I can't figure this out, and searches on the web have only shown me 
MORE complicated methods w/multiple redirect options.

WHERE I AM AT:

apache shows errors below:

[Sun Dec 30 20:42:40 2001] [error] (8)Exec format error: exec of 
/var/www/cgi-bin/quantdirect.pl failed
[Sun Dec 30 20:42:40 2001] [error] [client 66.188.78.192] Premature end of 
script headers: /var/www/cgi-bin/quantdirect.pl

script is HERE:

#/usr/local/bin/perl -w
use CGI qw(:cgi);
use strict;

$myurl = "http://www.quantifier.org/phpquant/";;

print "Location: $myurl\n\n";
exit;

*********
I am fried right now. I have tried this with $url & use strict but 
received this:

Global symbol "$myurl" requires explicit package name at quantdirect.pl 
line 5.
Global symbol "$myurl" requires explicit package name at quantdirect.pl 
line 7.

What documentation tells me HOW to redirect? This file exists with same 
perms/ownership as other scripts. Looking at those for help have been 
fruitless.

The aim is to put a script in my /var/www/cgi-bin/openwebmail/ dir that 
gets called by this code snippet:

**begin snip**

 my $temphtml = startform(-action=>"$config{'ow_cgiurl'}/quantdirect.pl") 
..
#   my $temphtml = 
startform(-action=>"$config{'ow_cgiurl'}/openwebmail.pl") .
                  submit("$lang_text{'continue'}").
                  "&nbsp; &nbsp;".
                  button(-name=>"exit",
                         -value=>$lang_text{'exit'},
                         -onclick=>'window.close();',
                         -override=>'1').
                  end_form();

**end snip**

I've also looked at the openwebmail list and had no luck.

I asked a similar question to beginners-cgi but received no answer. 

ANYone out there to point me in the correct direction??? even if another 
list...

Thanks (be gentle...)

KeN
_____________________________________
http://quantifier.org GnuPG: 7C828670
  8:30pm  up 10 days,  4:15
Your love life will be... interesting.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to