11-26-2012
My database and Linux are in roman8 char set
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Here is something that am trying with perl
#! /opt/third-party/bin/perl
open(fh, "s") || die "unable to open the file <small>";
@ch = ();
$i = 0;
while( $content = <fh> )
{
if( $i <= 5 ) {
push(@ch, $content);
$i++;
}
else {
$i = 1;
foreach(@ch) { (8 Replies)
Discussion started by: matrixmadhan
8 Replies
2. Shell Programming and Scripting
I am running my script from "/abc/" this path and it has no ".csv files" but has a ".txt" files namely temp1.txt
My script goes as below, wherein it is suppose to find files with *.txt extension and *.csv extension in another path namely "/abc/xyz/":
#!/bin/ksh
PATH1="/abc/xyz/"
value="*.csv... (7 Replies)
Discussion started by: wolverine999
7 Replies
3. Shell Programming and Scripting
Hi am using uuencode fro attaching one report which is nothing but sql query output.
But when i receive the report through attachement and when it is opened the report is not displayed in proper format. Means if the sql query has 100 rows the mail attachment report displays the report in 2... (2 Replies)
Discussion started by: weknowd
2 Replies
4. Solaris
deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies
5. Shell Programming and Scripting
I am fetching a database table in spool file and send that details as a email.
The Spooled file content is properly being displayed in UNIX.
See Example below :
ID|FILENAME |ABCDEF_DT |PROCESSED_DT |STATUS... (4 Replies)
Discussion started by: Ravi_007
4 Replies
6. UNIX for Beginners Questions & Answers
"Debain 9 - LXDE"
I execute follow line in the bash terminal:
/ts3/server/ts3server_startscript.sh start createinifile=1 | tee -a /ts3/server/key.txt
The displayed output looks like follow:
My key.txt file looks like follow:
How can i save the whole displayed text in my file?
Why does... (5 Replies)
Discussion started by: int3g3r
5 Replies
7. UNIX for Beginners Questions & Answers
Is there any way to print the colorful message in the terminal (which is the output of a simulation) to the log file with the same color.
The colorful message at the terminal is obtained by the following codes:
/////////////codes start here///////////////////////////////////////
... (5 Replies)
Discussion started by: babunp114525
5 Replies
LEARN ABOUT HPUX
xrmputresource
XrmPutResource() XrmPutResource()
Name
XrmPutResource - store a resource specification into a resource database.
Synopsis
void XrmPutResource(database, specifier, type, value)
XrmDatabase *database;
char *specifier;
char *type;
XrmValue *value;
Arguments
database Specifies a pointer to the resource database. If database contains NULL, a new resource database is created and a pointer to it
is returned in database. If a database is created, it is created in the current locale.
specifier Specifies a complete or partial specification of the resource.
type Specifies the type of the resource.
value Specifies the value of the resource.
Description
XrmPutResource() is one of several functions which store data into a database.
XrmPutResource() first converts specifier into a binding list and a quark list by calling XrmStringToBindingQuarkList(), and converts type
into an XrmRepresentation by calling XrmStringToRepresentation. Finally, it puts the data into the database. If the specifier and type
are not in the Host Portable Character encoding, the result is implementation-dependent. The value is stored in the database without modi-
fication.
XrmPutResource(), XrmQPutResource(), XrmPutStringResource(), XrmQPutStringResource() and XrmPutLineResource() all store data into a data-
base. See the description of XrmQPutResource() for the most complete description of this process.
For more information, see Volume One, Chapter 13, Managing User Preferences.
Structures
XrmDatabase is a pointer to an opaque data type.
typedef struct {
unsigned int size;
XPointer addr;
} XrmValue, *XrmValuePtr;
See Also
XrmDestroyDatabase(), XrmGetFileDatabase(), XrmGetResource(), XrmGetStringDatabase(), XrmInitialize(), XrmMergeDatabases(), XrmParseCom-
mand(), XrmPutFileDatabase(), XrmPutLineResource(), XrmPutStringResource(), XrmQGetResource(), XrmQGetSearchList(), XrmQGetSearchRe-
source(), XrmQPutResource(), XrmQPutStringResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmString-
ToQuark(), XrmUniqueQuark().
Xlib - Resource Manager XrmPutResource()