Search Results

Search: Posts Made By: nsinha
11,617
Posted By nsinha
Hi All Sorry for the late update in this...
Hi All

Sorry for the late update in this post. Actually I don't have direct access to the customer system and customer support folk went for a vacation.

I edited the code as "sea" has suggested...
11,617
Posted By nsinha
Core dump in a simple shell script!
Hi

I have a very simple shell script that is dumping core -

testScript -


#!/bin/ksh
PROG=${0##*/} # basename
if [ $# -ne 1 ]; then
print -u2 "Usage: $PROG filename"
...
Forum: Programming 04-04-2014
1,133
Posted By nsinha
Separate input buffer into multiple lines
Hi All

I have a very tricky problem, not able to solve it. Hence asking this question.

I have a code portion like this -


int
parse_msg(in_buf,line1,line2,sccs_line)
char...
896
Posted By nsinha
awk loop issue
Hi

I am not able to solve this minor issue even after a lot of trial! Will be thankful if you can help me out. This is part of a awk script and the loop is self-explanatory -

...
1,540
Posted By nsinha
Passing "$1$" as an argument
Hi

I have a strange issue and hence asking for your help.

I am using a RHEL machine and the user passwords are stored inside /etc/shadow file. These are md5 encrypted passwords. I am extracting...
Forum: Programming 03-15-2012
2,614
Posted By nsinha
RHEL: Problem while using "purify gcc" for ESQL-C
Hi

I am facing a problem while doing Purify Instrumentation of the Informix ESQL-C files. The system is RedHat Linux 5.6 and compiler is gcc.
I have set both CC and INFORMIXC variables to...
Forum: Programming 07-14-2011
4,263
Posted By nsinha
How to get the value from address?
No, I am not a novice in c - not at all! I have plenty of experience in c, c++, java etc. But I am facing a awkward problem in c (gcc in RHEL) - I am not able to get the value pointed by the pointer...
Forum: Programming 01-13-2011
7,632
Posted By nsinha
Hi !!! First of all thanks a ton to your...
Hi !!!

First of all thanks a ton to your post - appreciate your time and effort to help me out! I took long time to reply here because of some other urgent work.

I took your help and wrote the...
Forum: Programming 01-04-2011
7,632
Posted By nsinha
Porting ofstream attach() in linux gcc
Hi

We have a huge codebase in HP-UX and we are porting them in RH-Linux. I am facing the problem of making the following code work in gcc -


ofstream ofs;
int fd = open(fileName, openState,...
11,190
Posted By nsinha
Formatting isql output to horizontal format
Hi

I am formatting informix isql output(vertical) to horizontal format. Suppose I have the following content in the flat file from isql output -

item_nbr 0
usfn_label Subscriber Class...
8,255
Posted By nsinha
Hi timontt Thank you sooooo much for the...
Hi timontt

Thank you sooooo much for the reply. Your script is working fine, but in that case I have to append every command to be executed with "2>&1 | tee -a log1.txt >> log2.txt". But in my...
8,255
Posted By nsinha
Dynamically redirect output to duplicate files ???
Hi

There are many posts in this forum regarding reditecting output, but mine is a different problem, please have a look.

My shell script is redirecting output to a log file dynamically. That is...
84,220
Posted By nsinha
Hi Yogesh Thanks a lot man. I should also...
Hi Yogesh

Thanks a lot man. I should also try 'awk' - my mistake.

Thanks
Nirmalya
84,220
Posted By nsinha
How to extract the PID from 'ps -ef'
Hi

I am writing a shell script in ksh where I have to grep for a process name , say XYZ from "ps -ef" and then extract it's PID.

ps -ef | grep XYZ gives -
" int 7738 25734 1 02:00:49...
Showing results 1 to 14 of 14

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