Thanks for explaining more. It's quite clear what you are aiming for. Even your original explanation was pretty clear. Try the following:
What I don't like is that it starts 20 background processes. When you want to eventually kill them it might be a little problematic. But I don't see any way around having a bunch of background processes. And it seems like the original script was designed to have multiple background processes, so you are OK with that.
Hi
I need a Shell script that will download a text file every second from a http server using wget.
Can anyone provide me any pointers or sample scripts that will help me go about this task ???
regards
techie (1 Reply)
Dear all,
I am calling a korn shell script(CGI script) by a web-page. This shell script do some checking in a unix file and return true or false. Now within the same script, If it returns true then I want to redirect to another web-page stored in htdocs directory.
Example: Login page sends a... (3 Replies)
Hi All,
Sorry to ask this question and i am not sure whether it is possible. please reply to my question. Thanks in advance.
I need a perl script ( or any linux compatible scripts ) to copy the graphical contents of the webpage to a word pad.
Say for example, i have a documentation site... (10 Replies)
Hi,
Say there is a web page that contains just text only - that is, even the source code is just the text itself, nothing more. An example would be "http://mynasadata.larc.nasa.gov/docs/ocean_percent.txt"
Is there a UNIX command that would allow me to download this text and store it in a... (1 Reply)
First, let me state that I am completely out of my realm with this.
I have a server running HPUX. I'm not even sure if this can be considered a UNIX question and for that let me apologize in advance.
I need to create a web page where a client can input 2 variables (i.e. date and phone number).... (0 Replies)
Hello,
Does anyone know of a way to list all files related to a single web page and then to download say 4 files at a time simultaneously until the entire web page has been downloaded successfully? I'm essentially trying to mimic a browser.
Thanks. (2 Replies)
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
hello,
I am trying to refresh my web page which is created in bash script.
I have a HTML page which when press a button calls a bash script. this bash script created the same page with dynamic data.
When pressing the button I am calling to a function that set time out of 7 seconds and and after... (1 Reply)
Hello,
I'm new in the forum and really beginer, and also sorry form my bad english.
I use linux and want to create little program to download automaticaly some pdf (invoices) and put in a folder of my computer. I learn how to do and programme with ubuntu but the program will be implemented... (1 Reply)
Discussion started by: MarcelOrMittal
1 Replies
LEARN ABOUT DEBIAN
ns_connredirect
Ns_ConnReturn(3aolserver) AOLserver Library Procedures Ns_ConnReturn(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_ConnRedirect - Internally redirect a request to a new local url
SYNOPSIS
#include "ns.h"
int
Ns_ConnRedirect(conn, url)
ARGUMENTS
Ns_Conn conn (in) Pointer to open connection.
char *url (in) Pointer to string of local url.
_________________________________________________________________DESCRIPTION
This routine can be used to internally redirect to a new, local url on the server. The url paramter specifies a path relative to the
server, i.e., without the leading "http://host:port" portion. The server will reset the Ns_Request structure in the open connection
pointed to by conn and restart connection handling, including authorization checks. The result is a standard AOLserver request procedure
result code, either from an underlying call to Ns_ConnRunRequest or the result of one of the authorization response routines such as
Ns_ConnReturnForbidden. Filter callbacks, if any, are not run again with the updated connection.
The Ns_ConnRedirect routine is used internally in the server to support the basic file serving code (i.e., "fastpath") to redirect to spe-
cific files when a directory is opened and by the Ns_RegisterRedirect routine to map standard reponse routines to user-provided local
url's.
EXAMPLE
The following example demonstrates redirecting to an ADP help page within a custom C-level request callback whenever a ?help=topic query
argument is present:
int
MyRequest(void *arg, Ns_Conn *conn)
{
Ns_Set *query = Ns_ConnGetQuery(conn);
/* Redirect to help.adp for /myrequest?help=topic calls. */
if (Ns_SetGet(query, "help")) != NULL) {
return Ns_ConnReturnRedirect(conn, "/help.adp");
}
... handle non-help requests ...
}
SEE ALSO Ns_RegisterRedirct(3), Ns_ConnRunRequest(3), Ns_AuthorizeRequest(3)KEYWORDS
connection, redirect
AOLserver 4.0 Ns_ConnReturn(3aolserver)