Solved

Background script

Posted on 1997-03-21
1
199 Views
Last Modified: 2013-12-25
How can I run a CGI script in the background.  Meaning not have a page displayed. I want to send the script some data,
have it do something and depending on the result, bring up one of two pages.  

Right now the only way I can do it is have the form execute the script. The script does it's thing and then writes a page saying it was successful or not.  I have a meta tag in the script which executes the next page after 1 second.  I would like to skip the message in between part.  

Hope I have explained this well.
0
Comment
Question by:wspoulin
1 Comment
 
LVL 4

Accepted Solution

by:
furu earned 100 total points
ID: 1827774
What you need to do is output
Location: http://www.domain.com/file.html
as the header. That is instead of
Content-Type: text/html

An example:
---------------------------
#!user/bin/perl  
if (condition 1) {
 print "Location: http://www.domain.com/file1.html\n\n";
}
elsif (condition 2) {
 print "Location: http://www.domain.com/file2.html\n\n";
}
else {
 print "Location: http://www.domain.com/error.html\n\n";
}
------------------------------------------------------------
 HTH
 

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now