Search Results

Search: Posts Made By: handak9
37,132
Posted By handak9
Print file line by line
I have a file where each line is a stream of text as follows,

table1, select * from table1
table2, select * from table2

How do i loop through the file line by line? I have tried doing the...
6,671
Posted By handak9
I have noticed that when the shell scripts are...
I have noticed that when the shell scripts are down then the kernel usuage returns back to normal.

Can you suggest anything in a script that would then? The scripts are doing usual things like...
6,671
Posted By handak9
High kernel usage using sleep
Hi

I have a lot of scripts running on a Sun Solaris server, which are constantly running in a loop looking for work to do. When they have no work they sleep for a certain amount of time (60secs...
30,515
Posted By handak9
Untar to different location
I have a tar file where the files have been tar'd along with the location of the file i.e

/opt/abc/file.txt
/opt/abc/file2.txt

I am trying to untar this file on a different server where...
5,375
Posted By handak9
Append strings with filler spaces
Hi

I am looping through the contents of a file as follows

cat file |while read inrec
do

echo $inrec >> $TMP
done

(obviously this isn't all i am doing as it would be pointless but for...
19,673
Posted By handak9
Yes i am passing in a xml file. I am using a...
Yes i am passing in a xml file.

I am using a Sun Solaris

[FIT01]:uname -a
SunOS stevux1095d 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Fire-15000
19,673
Posted By handak9
Thanks - but that doesn't work - have you tried...
Thanks - but that doesn't work - have you tried it?
19,673
Posted By handak9
That didn't work either. did it work for...
That didn't work either.

did it work for you?
19,673
Posted By handak9
That doesn't seem to work My XML is as...
That doesn't seem to work

My XML is as follows and i want to get the value between the UpcEan flags

<Baskets...
19,673
Posted By handak9
Grep xml tags
Hi

I want to get the value between to XML tags as follows

<EAN>12345</EAN>

so i would want to return 12345. i have tried sed and awk but can't do it.

can anyone help?
10,822
Posted By handak9
Process file line by line
Hi

I have a csv file as follows

608, Barnwood PFS,,2
150, Barnwood CS,2,4
etc

When i do for lines in `cat file.dat` the space in second argument seems to screwing the lines up.

Any...
3,482
Posted By handak9
Set start point in script
Does anyone know of a way to set up some sort of marker in a shell script, from which the script can be restarted..

e.g.

MARKER1
check env variable MAX_RETRY
if var not set then
...
34,964
Posted By handak9
Check if variable is a number
If I have a variable $X, how do I check it is a number?

Many thanks.
Forum: Programming 11-01-2004
3,745
Posted By handak9
XML parsing
Hi

I want to take an XML file and transform it into a pipe-delimited format. What is the best tool to use for this? I have libxml2 which seems to be the best xml parser around.

The xml file...
Forum: Programming 10-29-2004
3,857
Posted By handak9
I used, EXEC SQL FOR...
I used,

EXEC SQL
FOR :PL_COMMIT_MAX_CTR
FETCH c_fetch_raw_txn INTO
:raw_txns.h_store_id,
etc


I attached the code. Or at least...
Forum: Programming 10-29-2004
3,857
Posted By handak9
sqlcxt/malloc error
Bit of a long one this

I am running the code below and I am getting a bus error when trying to make a struct member equal a variable. I stepped through the program in dbx and got the following....
Forum: Programming 10-20-2004
16,123
Posted By handak9
gunzip and base64 decode a string
I am writing a C program to get messages from a JMS queue into a string variable and then write them to a database.

The messages are compressed (gzip) and encoded (base64), so I need to be able to...
Forum: Programming 10-04-2004
1,687
Posted By handak9
.h Problem
Hi,

I have two directories as follows

C
JMS

Under JMS there is a directory C_API which contains header files.

I have all my code under 'C'. When I try and compile some c code in the 'C'...
5,002
Posted By handak9
i've sorted out the problem by setting the RCMPLR...
i've sorted out the problem by setting the RCMPLR variable to gcc before calling make.
Forum: Programming 09-30-2004
6,152
Posted By handak9
Expat install
I downloaded the expat zip from ftp://ftp.jclark.com/pub/xml/expat.zip. I put all the files in the zip on my solaris server, under an 'expat' directory and ran make -f Makefile. Everything seemed to...
Forum: Programming 09-29-2004
3,873
Posted By handak9
jsh1035c:/users/egate453/admegate/kapil/samples $...
jsh1035c:/users/egate453/admegate/kapil/samples $ file ../JMS/C_API/stc_msapi.dll
../JMS/C_API/stc_msapi.dll: data

Does that look right?
Forum: Programming 09-29-2004
3,873
Posted By handak9
ld failure
Hi,

I am using gmake to compile a c program with a makefile. The make file runs ld. I get the following error

jsh1035c:/users/egate453/admegate/kapil/samples $ gmake -e -f GNUmakefile queue_c...
5,002
Posted By handak9
Problems with gnu make
I am running a make file through the gnu make tool and i am getting the following error

jsh1035c:/users/egate453/admegate/kapil/samples $ make -f GNUmakefile queue_c
make -f ./GNUmakefile...
Forum: Solaris 09-08-2004
9,599
Posted By handak9
Thanks, that worked.
Thanks, that worked.
Forum: Solaris 09-07-2004
9,599
Posted By handak9
I have time and time again with little luck.
I have time and time again with little luck.
Showing results 1 to 25 of 31

 
All times are GMT -4. The time now is 11:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy