10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello to everybody
How can I tell if this command is working?
Fedora terminal:
$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECTI understand that after this command Firefox should be unable to receive RTMP streaming that use port 1935. But nothing changes Firefox receives the... (0 Replies)
Discussion started by: francus
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Is there a way to redirect the output of a set of commands to a file instead of using << at every command in bash shell. For eg
(echo hostname
echo "Comparing 2 files"
comm -3 file1 file2) >>file3 (3 Replies)
Discussion started by: Rossdba
3 Replies
3. Web Development
Just want to give a background. Currently, our company web site is redesigned and there are about 200 current URLs will have new redirects. I don't want to enter them in the config file rather would like to have them in a text file/config file and referring the file from the config whenever the... (2 Replies)
Discussion started by: jawak
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have a working sendmail setup for my domain, but would like to run a subdomain on another machine. I could try below, but its a production server and worry about messing it up. Hence the question.
So I have machine names:
mydomain.com (mail server)
dev.mydomain.com
currently the... (1 Reply)
Discussion started by: gtrava01
1 Replies
5. Shell Programming and Scripting
I bet many people faced this problem before:
The command below will result in a blank file:
$ cat myfile | grep pattern > myfile
Is there any easy way to do it? (8 Replies)
Discussion started by: rlopes
8 Replies
6. Shell Programming and Scripting
Hi,
I would like to list files: ls *.hdf
But I would like a copy of the output directed to the screen, but also APPENDED to a text file: test.txt
I have tried:
ls *.hdf | tee test.txt
However, that will just write over everything already existing in test.txt. How can I append the... (1 Reply)
Discussion started by: msb65
1 Replies
7. UNIX for Dummies Questions & Answers
i have following statement in the script
echo -e "$str_XML_col_name:$str_field_type;" >> $i_DC_Key_$i_Tgt_DC_key_Schema
here $i_DC_Key is DC key and $i_Tgt_DC_key are the variables...............
when i ran the script i am getting error rec_merge.sh: $i_DC_Key_$i_Tgt_DC_key_Schema:... (1 Reply)
Discussion started by: mahabunta
1 Replies
8. Programming
Hello guys,
Is it possible to redirect browser to another socket address?
Cheers,
Elton (1 Reply)
Discussion started by: EltonSky
1 Replies
9. Shell Programming and Scripting
Hi,
I need some help to achive the follwoing task:
I have a file named test that contain the following line:
'Hellow world','good morning'
I want to attach the content of this file to a variable named var , and then rediarect it to a second file bamed test_new.
The result should look like... (2 Replies)
Discussion started by: yoavbe
2 Replies
10. IP Networking
I'm sittig behind a firewall that doesn't allow ftp. I have a conection to a UNIX system, connecting throug SSH. Is it possible to redirect the ftp through the UNIX to my computer? (1 Reply)
Discussion started by: <Therapy>
1 Replies
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)