Search Results

Search: Posts Made By: madhu84
Forum: Programming 06-21-2011
8,122
Posted By madhu84
Hi, I was able to compile the code now. I...
Hi,
I was able to compile the code now.

I have removed "-lnsl" and included "arpa/inet.h" header file, which fixed the issue related to library.

By removing the "-o ptf" remaining issues were...
Forum: Programming 06-21-2011
8,122
Posted By madhu84
Hi, I have added the arpa/inet.h header file...
Hi,
I have added the arpa/inet.h header file and removed the -lnsl option.

Now, I am left with the below errors


$ cc util.o sock.o app.o -o ptf
IGD01008I ALLOCATION SET TO SCTEMPD M0610
...
Forum: Programming 06-20-2011
8,122
Posted By madhu84
Hi, Thanks for the reply. Sorry, I am not...
Hi,
Thanks for the reply.

Sorry, I am not much familiar with -lnsl is. I used it because, the same option is used while compiling the program in other unix boxes too.

When I remove the -lnsl...
Forum: Programming 06-20-2011
8,122
Posted By madhu84
Not able to compile C program on z/OS (USS)
Hi,
I having an issue while compiling a C program in USS (z/OS) machine.

I was able to create objest files (.o) from source (.c) files but when I try to create a binary file from the object files...
36,945
Posted By madhu84
Is there any script which will work on all the...
Is there any script which will work on all the machines?

On Solaris INTEL machine, the previous script behaves in below manner


$echo $PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games...
36,945
Posted By madhu84
New code didn't work on SUN INTEL machine I...
New code didn't work on SUN INTEL machine

I have created a shell script file test.sh with the below code


set -x
rmv="test/rmve"
PATH=$(echo $PATH| sed -e 's!'$rmv'!!' -e 's/::/:/')
echo...
36,945
Posted By madhu84
Here is the out put $ echo $PATH ...
Here is the out put


$ echo $PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games
$ echo $rmv
test/rmve
$ PATH=$(echo $PATH | sed -e 's;:\?'$rmv';;' -e 's;'$rmv':\?;;')
$export PATH
$ echo...
36,945
Posted By madhu84
Sorry, there is a typo in the thread...
Sorry, there is a typo in the thread description.. I updated it now


I used

PATH=$(echo $PATH | sed -e 's;:\?'$rmv';;' -e 's;'$rmv':\?;;')
export $PATH

Still having the same problem
36,945
Posted By madhu84
remove a path from PATH environment variable
Hi
I need a script which will remove a path from PATH environment variable. For example


$echo PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games

$echo rmv
test/rmve


Here I need a shell...
Showing results 1 to 9 of 9

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