03-29-2005
Run uname -a and post the results. Also, what database mgmt software are you using?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have a flat text file which contains blank line between each text line. Is there any command to get rid of it?
Thanks for your help (11 Replies)
Discussion started by: xfang
11 Replies
2. Shell Programming and Scripting
Hi,
I am using "fetchmail" and "procmail" combination to trigger a job based on an input mail.Using fetchmail, incoming mail is downloaded from the mailserver to the local host.Once the mail is flushed,procmail starts execution and thereby triggers the application script.
In-between... (3 Replies)
Discussion started by: DILEEP410
3 Replies
3. Programming
Hi All,
Please suggest me how to read a binary file in text or ASCII format.
thanks
Nagendra (3 Replies)
Discussion started by: Nagendra
3 Replies
4. Shell Programming and Scripting
Hi,
I need help urgently for following issue. Pls help me to resolve this issue.
I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql)
I given... (6 Replies)
Discussion started by: praka
6 Replies
5. Shell Programming and Scripting
Hello,
I need to take a random word from a flat text file with words in it seperated by spaces.
The code I am using, always gives me the first word. Can anyone please shed some light on this. Here's my code.
Thanks
echo table roof ceiling jar computer monitor keyboard carpet >... (5 Replies)
Discussion started by: Freakhan
5 Replies
6. Shell Programming and Scripting
Hey Everyone!
I have searched around for this on Unix.com and Google, and I'm either not phrasing my search properly or this is not as simple as I thought...
I have a script that runs on a nightly basis that pulls one field worth of data from an internal MySQL database and populates to an... (2 Replies)
Discussion started by: Gecko12332
2 Replies
7. Shell Programming and Scripting
hi
i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized
#----------------
FILENAME="$1"
SCRIPT=$(basename $0)
#-----------------------------------------//
function usage
{
echo "\nUSAGE: $THIS_SCRIPT file_to_process\n"... (3 Replies)
Discussion started by: mprakasheee
3 Replies
8. Shell Programming and Scripting
Greetings all,
Been trying to do my Googling and forum searches but can't seem to lock in on a solution.
I have a script that parses a log and collects all the uniq events to a flat file. Some days might have 50 unique events, other days might have 75. (Hence my reference to dynamic.)
... (2 Replies)
Discussion started by: sjrupp
2 Replies
9. UNIX for Dummies Questions & Answers
Okay, I search around and couldn't find what I needed, so here goes:
I have a series of ArcGIS point shapefiles. If I open them in Excel I can save as an Excel or text file and get a 2 column list:
POINTID | GRID_CODE
1 | 2.34234
2 | 4.3425
3 | 6.32456
etc...
The problem is that I... (3 Replies)
Discussion started by: jbrandt1979
3 Replies
10. Shell Programming and Scripting
I have an ASCII 28 delimited text file(non-printable delimiter) with 4 columns along with the header.I need to open this text file in Excel or any other tool to view each column content.
Please help..
Thanks (6 Replies)
Discussion started by: aneeta13
6 Replies
LEARN ABOUT REDHAT
genders_testquery
GENDERS_TESTQUERY(3) LIBGENDERS GENDERS_TESTQUERY(3)
NAME
genders_testquery - query genders database for a set of nodes
SYNOPSIS
#include <genders.h>
int genders_testquery(genders_t handle, const char *node, const char *query);
DESCRIPTION
genders_testquery() tests if the node pointed to by node meets the conditions specified in the query. If node is NULL, the current node is
tested. Queries are based on the union, intersection, difference, or complement of genders attributes and values. The query is passed as
a string through the query parameter. The set operation union is represented by two pipe symbols ('||'), intersection by two ampersand
symbols ('&&'), difference by two minus symbols ('--'), and complement by a tilde ('~'). Set operations are performed left to right.
Parentheses may be used to change the order of operations. A list of query examples are listed below. A NULL query retrieves all nodes
from the genders database.
EXAMPLES
The following are example queries that can be passed to genders_testquery().
Test if a node contains the mgmt or login attribute:
"mgmt||login"
Test if a node is not a login node:
"all--login"
Test if a node is both a login node and ntp server:
"login&&ntpserv"
Test if a node is not a mgmt or login node:
"~(mgmt||login)"
RETURN VALUES
If the node as met the conditions of the query, 1 is returned. 0 is returned if the node does not meet the conditions of the query. On
error, -1 is returned, and an error code is returned in handle. The error code can be retrieved via genders_errnum(3) , and a description
of the error code can be retrieved via genders_strerror(3). Error codes are defined in genders.h.
ERRORS
GENDERS_ERR_NULLHANDLE
The handle parameter is NULL. The genders handle must be created with genders_handle_create(3).
GENDERS_ERR_NOTLOADED
genders_load_data(3) has not been called to load genders data.
GENDERS_ERR_PARAMETERS
An incorrect parameter has been passed in.
GENDERS_ERR_SYNTAX
There is a syntax error in the query.
GENDERS_ERR_OUTMEM
malloc(3) has failed internally, system is out of memory.
GENDERS_ERR_MAGIC
handle has an incorrect magic number. handle does not point to a genders handle or handle has been destroyed by genders_han-
dle_destroy(3).
GENDERS_ERR_INTERNAL
An internal system error has occurred.
FILES
/usr/include/genders.h
SEE ALSO
libgenders(3), genders_handle_create(3), genders_load_data(3), genders_errnum(3), genders_strerror(3)
LLNL
June 2004 GENDERS_TESTQUERY(3)