i have a client TCP and a Server TCP. i have used bind() only on the server, the port of socket client is given by the OS that's it ?
it retrieves this port from this range (/proc/sys/net/ipv4/ip_local_port_range) ?
That's it ?
Thanks a lot.
Best Regards.
Moderator's Comments:
Please use code tags next time for your code and data. Thanks
Hi,
I need to write a shell script that should lists only the files that starts with alphabet from the /proc dir and then I have to cat those files and redirect to a file.
But my below script is not working. It is reading the first file properly but not the subsequent files. Please throw a... (2 Replies)
Hi all,
I need some help with using sed/awk/other linux tools to meet the following goal:
I'm trying to take the output of /proc/net/dev:
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes ... (0 Replies)
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Hi all,
I am new to redhat/fedora linux.
In fedora linux 6,we created one file system(hda3 - /fs).
in this mount poing we were installed mounta vista os.
while booting we are getting below error messages.
1)
Booting 'mountaVisat(2.6.18_pro 500_pc_target-x86_586 smp)'
root(hd0,1)... (2 Replies)
Hi,
I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Hi folks.
I work with several production servers, and I have seen in some Kernel Cache using most of the memory.
See this pic:
http://i51.tinypic.com/301nb6c.jpg
Do you think this is a smart choice? Remember these are productions servers and it is extremely necesary this does not... (6 Replies)
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)