Solved

Background script

Posted on 1997-03-21
1
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS CLI issues with Tags 3 92
Set robocopy to exclude "System Volume Information" folder 3 201
change the windows script file to BAT 10 55
Deploy restore partition 1 25
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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 count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

735 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