06-10-2017
I'm afraid it's the browser or the server or the editor? that added [URL] tags and put the ... in lieu of the real partial string. I removed the [URL] tags to display the entire string; unfortunately, the caret still point to nowhere...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Here is my question,
volume of records processed : 5M ( approx )
Its basically very simple operation that am trying to do and I had achieved the output that am interested. What am looking for really is to improve the performance, an optimized way to do that.
with respect to iconv, am... (3 Replies)
Discussion started by: matrixmadhan
3 Replies
2. Shell Programming and Scripting
Hello All,
I have an XML file which has some errors in its tag definition according to an xsd. When i validate this xml file against an xsd, i wish to only take the errors in a file and not the complete xml. for eg.
Raman.xml has some errors induced in it.
RamanValidator.xsd holds the schema... (5 Replies)
Discussion started by: damansingh
5 Replies
3. Shell Programming and Scripting
I have a very simple script that reads in the contents of a file (_open.txt) into an array "lyrics":
#!/bin/sh
# read in the text
lyrics=( `cat _open.txt` | tr '\n' ' ')
exit 0
It gives the following error message:
./lyrics.sh: 1: Syntax error: word unexpected (expecting ")")
I have... (9 Replies)
Discussion started by: figaro
9 Replies
4. Solaris
hi all
plese clarify me in the following area.
1. What is the default NFS version in solaris 5.10. If it is 3, then why it asks me to specify "-o vers=3" keyword while i am mounting a share from a RHEL 5.1 Server?
2. Can someone give the link to download packages for accessing "ntfs"... (4 Replies)
Discussion started by: kingston
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
Please take a look below, I'm grepping for /app/oracle and would like explicitly that result and not /app/oracle/admin as well.
# cat /tmp/fs.list
/app/oracle
/app/oracle/admin
# cat /tmp/fs.list | grep -w "/app/oracle"
/app/oracle
/app/oracle/admin (3 Replies)
Discussion started by: s1ckle
3 Replies
6. Shell Programming and Scripting
Command line xmllint --schema validation fails but $? returns 0
myinput.xml:
<myinput><header>mytestvalue</header></myinput>myschema.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="myinput" type="xsd:string"/>
</xsd:schema>Command:
$xmllint --schema... (4 Replies)
Discussion started by: mknag
4 Replies
7. Shell Programming and Scripting
Hi All,
Need help to parse the xml file in shell script using xmllint. Below is the sample xml file.
<CARS>
<AUDI>
<Speed="45"/>
<speed="55"/>
<speed="75"/>
<speed="95"/>
</AUDI>
<BMW>
<Speed="30"/>
<speed="75"/>
<speed="120"/>
<speed="135"/>
</BMW>... (6 Replies)
Discussion started by: prasanna2166
6 Replies
8. Shell Programming and Scripting
Have like 50 xml files in a folder. They all have a Node named <Number>.How to display the values of <Number> with the count and filename in the folder. I am using Mac . (7 Replies)
Discussion started by: Anethar
7 Replies
9. UNIX for Beginners Questions & Answers
Hi there
I am trying to create a script where I am checking the process is being run by the correct user, when I go to run the script it is not returning what I am expecting and I am not 100% sure why!!!
First off I have determined what the process user should be at the top of the script ... (3 Replies)
Discussion started by: simpsa27
3 Replies
10. Shell Programming and Scripting
Hi,
I'm trying to get some values from an xmlfile and want be able to process them. I'm using xmllint(v20901 on debian jessie) and this program directly outputs all results concatenated right after each other. I did not find a solution in the man page to get a different format or some output... (2 Replies)
Discussion started by: stomp
2 Replies
LEARN ABOUT DEBIAN
ns_urlisfile
Ns_UrlToFile(3aolserver) AOLserver Library Procedures Ns_UrlToFile(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
Ns_SetUrlToFileProc, Ns_UrlIsDir, Ns_UrlIsFile, Ns_UrlToFile - URL to file mapping procedures
SYNOPSIS
#include "ns.h"
void
Ns_SetUrlToFileProc(char *server, Ns_UrlToFileProc *procPtr)
int
Ns_UrlIsDir(char *server, char *url)
int
Ns_UrlIsFile(char *server, char *url)
int
Ns_UrlToFile(Ns_DString *dsPtr, char *server, char *url)
_________________________________________________________________
DESCRIPTION
These functions map URL paths to real files and directories. They are normally used to determine whether a given URL has a corresponding
file or directory and to return the real filesystem path that corresponds to the URL.
Ns_SetUrlToFileProc(server, procPtr)
Set a pointer to a custom routine to use in place of Ns_UrlToFile.
Ns_UrlIsDir(server, url)
Construct a directory name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if
the directory exists; NS_FALSE otherwise.
Ns_UrlIsFile(server, url)
Construct a file name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if the
file exists and is a regular file; NS_FALSE otherwise.
Example:
/* IsFile - Simple request to determine if an URL is a file. */
int
IsFile(Ns_Conn *conn, void *ctx)
{
int isfile;
char *server;
server = Ns_ConnServer(conn);
isfile = Ns_UrlIsFile(server, conn->request->url);
if (isfile) {
Ns_ConnReturnNotice(conn, 200, "File", NULL);
} else {
Ns_ConnReturnNotice(conn, 200, "Not a File", NULL);
}
return NS_OK;
}
Ns_UrlToFile(dsPtr, server, url)
The Ns_UrlToFile function writes the full path name of the file corresponding to the given URL. The result is appended to the
Ns_DString. The function does not check that the file exists or is readable by the AOLserver process. This function returns a status
of NS_OK or NS_ERROR.
Normally this prepends the pageroot to the URL path. If you have created your own custom routine and used Ns_SetUrlToFileProc to
point to it, your routine is called instead. This could be used to create, for example, a module that takes the given URL and maps
it to a file in a different way than the default Ns_UrlToFile routine.
Example:
/* A simple page fetch request function. */
int
SimpleFetch(Ns_Conn *conn, void *ctx)
{
Ns_DString ds;
FILE fp;
char *server;
Ns_DStringInit(&ds);
server = Ns_ConnServer(conn);
Ns_UrlToFile(&ds, server, conn->request->url);
fp = fopen(ds.string, "r");
Ns_ConnSendOpenFp(conn, fp, -1);
fclose(fp);
Ns_DStringFree(&ds);
return NS_OK;
}
SEE ALSO
nsd(1), info(n)
KEYWORDS
AOLserver 4.0 Ns_UrlToFile(3aolserver)