Search Results

Search: Posts Made By: junaid.nehvi
33,012
Posted By junaid.nehvi
Franklin: I tried following possiblities ...
Franklin:
I tried following possiblities


while(("cal "month" "year" | tail -7|tr \" \" \";\"|tr \"\\n\" \";\" | getline OPFILE"))
{
print "Here...."OPFILE
}

while(("cal "month" "year" |...
33,012
Posted By junaid.nehvi
Thanks all for you replies: On my solaris...
Thanks all for you replies:

On my solaris machine date -d doesn't work.
Niether does date -j -f...:((

Franklin52: I have to do this process (dow) for every record in a file, besides other...
33,012
Posted By junaid.nehvi
Finding Day of the week from date
I have a problem of Finding Day of the week from date, but i need to do it within awk On SOLARIS

Input:20101007(YYYYMMDD)
Output:Thursday

kindly provide suggestions.

Thanks in advance
Forum: Programming 08-30-2010
9,388
Posted By junaid.nehvi
Compiling and linking Shared Libraries.
here is the output:
$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared...
Forum: Programming 08-28-2010
9,388
Posted By junaid.nehvi
Compiling and linking Shared Libraries.
I have one C program which contains a function call.
I have been given some .so and .h files.
I want to know how to compile and link the c program with .so files.

I tried following:
$ gcc ...
Forum: Programming 04-12-2010
2,583
Posted By junaid.nehvi
Editing binary files
I am working in C and need a solution for below problem:

I have a binary file, which needs to be edited in such a way no data is loss.
For example i have to insert 3 bytes of data at some...
Forum: Solaris 05-28-2009
25,573
Posted By junaid.nehvi
Hi, I'm also hitting similar crash, which...
Hi,

I'm also hitting similar crash, which i'm not able to explain why.

Were you able to fix this issue - was it a bug in your code, or in SunOS.

Any comments would be of great help.
...
Forum: Programming 03-27-2009
3,670
Posted By junaid.nehvi
i have changed the code a little char...
i have changed the code a little

char DataIn[] = "<nx-charging:additional-parameter name=\"NX_INTERNATIONALIZED_CLID\" value=\"919427960829\"/><nx-charging:finalStatus>RESPONSE , Not/Applicable ,...
Forum: Programming 03-26-2009
3,670
Posted By junaid.nehvi
Extracting Field values for XML file
i have an input file of XML type with data like

<nx-charging:additional-parameter name="NX_INTERNATIONALIZED_CLID" value="919427960829"/><nx-charging:finalStatus>RESPONSE , Not/Applicable ,...
Forum: HP-UX 02-18-2009
13,646
Posted By junaid.nehvi
waiting for you replies
waiting for you replies
Forum: HP-UX 02-18-2009
13,646
Posted By junaid.nehvi
VBE: i tried to compile my code with -Ae option...
VBE:
i tried to compile my code with -Ae option but errors are still comming, i am pasting a few.

$ cc -Ae -D CONVERTERFLAG -o OBJ_FILE converter.c
cc: "converter.c", line 1139: error 1000:...
Forum: HP-UX 02-17-2009
13,646
Posted By junaid.nehvi
here is the sys detail abt cc. $ uname -a ...
here is the sys detail abt cc.

$ uname -a
HP-UX kautilya B.11.11 U 9000/800 876920620 unlimited-user license

$ which cc
/usr/bin/cc

$ ls -al /usr/bin/cc
lr-xr-xr-t 1 ttsladm users ...
Forum: HP-UX 02-17-2009
13,646
Posted By junaid.nehvi
error 1000: Unexpected symbol
Hi All,
I have a code which is used for conversion from binary to ASCII.
This code works absolutely fine on Linux and Solaris
And the same is giving many errors and warnings on HPUX. The machine...
Forum: HP-UX 12-04-2008
15,798
Posted By junaid.nehvi
techlinux Try clearing cache- sync; echo 3 >...
techlinux
Try clearing cache- sync; echo 3 > /proc/sys/vm/drop_caches
******************************************************
i tried it but without any success....
memory fault still continues to...
Forum: HP-UX 12-02-2008
15,798
Posted By junaid.nehvi
memory fault(core dump)
i am getting memory fault (core dump) in a C program

i want to know which statement execution caused it.
i tried following things

$ gdb generalised_tapinread_mod
HP gdb 5.4.0 for HP...
Forum: Solaris 11-28-2008
25,573
Posted By junaid.nehvi
i am getting segmentation fault (core dumped) i...
i am getting segmentation fault (core dumped)
i tried following things but couldn't understand what is wrong with my prog and where the problem is....

i have only adb debugger available on...
Forum: Programming 11-25-2008
34,125
Posted By junaid.nehvi
Re: to jlliagre
Why are you expecting 0xC1 to display A ?
0xC1 in "ASCII" (actually ISO-LATIN1) is Á.
*********************************
the ebcdic equivalent of 0xc1 is A
and i have to print EBCDIC equivalent...
Forum: Programming 11-25-2008
34,125
Posted By junaid.nehvi
Re: to jlliagre
I was even surprised your code compiled.

Here it is with several bugs fixed:
.
.
.
.
thanks for your attention
But for
char hexval[10]="c1c2c3c4c5";
i am expecting EBCDIC values as:
A
B...
Forum: Programming 11-25-2008
34,125
Posted By junaid.nehvi
for char hexval[10]="c1c2c3c4c5"; i am...
for char hexval[10]="c1c2c3c4c5";
i am expecting EBCDIC values as:
A
B
C
D
E
but i am getting
ascii value is 193 Á
ebcdic value is 119
ascii value is 194 Â
ebcdic value is 120
ascii value...
Forum: Programming 11-24-2008
34,125
Posted By junaid.nehvi
Convert HEX to EBCDIC IN C
i want to convert Hex value To EBCDIC value.
i tried to convert hex to ascii and then to ebcdic but it doesn't give desired results .

it doesn't give corresponding ebcdic value instead it gives...
Forum: Solaris 11-04-2008
27,232
Posted By junaid.nehvi
Re to :incredible
Hi junaid.nehvi , would appreciate if you can show us whats the exact errors you see? errors on the console or maybe those from the /var/adm/messages file?
...
Forum: Solaris 11-03-2008
27,232
Posted By junaid.nehvi
Segmentation Fault (core dumped)
i am getting Segmentation Fault (core dumped) on solaris,
but when i run the same program with same input on linux it runs successfully.

How can i trace the fault in program on solaris.
1,648
Posted By junaid.nehvi
this is my dump3_out tipo = abonado simplex,...
this is my dump3_out

tipo = abonado simplex, Idiomas = dic1 - none, Operador = estandar
Serv. portadora admitido: modem
ind = 0 numero telefonico = 79260960, att = 0
Carrier Contratado:...
1,648
Posted By junaid.nehvi
facing problem in getting output on single line
i am using these two grep commands

grep "^tipo" dump3_out.dat|awk -F"," '{for(i=1;i<=NF;i++){A=$i;B=substr($i, index($i, "=")+1);{print B }}}'|paste -s -d"||\n"|sed -e 's/^ //g' -e 's/| /|/g' >>...
2,111
Posted By junaid.nehvi
i am newer to unix platform
i have to select particular fields from a multiple line record.
my record is in dump.txt file and looks like this
*******************
tipo = abonado simplex, Idiomas = dic1 - none, Operador =...
Showing results 1 to 25 of 25

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