my $res=system ("test.bat");
if ($res==0){
$cgi-> redirect('http://servername:port/cgi-bin/calc_success.html';}
#{print 'Status: 302 Moved', "\r\n", 'Location: http://servername:port/htdocs/calc_success.html', "\r\n\r\n";}
#{print "Location: http://servername:port/htdocs/calc_success.html$ENV{'REQUEST_URI'}";}
#{ print redirect(-uri=>'http://servername:port/calc_success.html',
# -nph=>1,
# -status=>301);}
I have also tried calc_success.pl which is again a perl file with some HTML tags in it.
the URL is accesible with the browser and there are no errors in Apache error log.
Any pointers will be appreciated
Thanks in Advance!
$cgi-> redirect('http://servername/calc_success.html');
assumes you have loaded the CGI module and created the $cgi object.
Note the syntax errors in your posted code.
you are probably going to have to name it as a .cgi file and/or configure apache to activate cgi scripts with that file extension using AddHandler Directive [httpd.apache.org].