Solved

Background script

Posted on 1997-03-21
1
213 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

739 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