Search Results

Search: Posts Made By: sanzee007
Forum: IP Networking 06-03-2015
2,807
Posted By sanzee007
Read() time out in socket programming
Hi,
When can the read() system call gives timeout error when the same connection worked for writing data to the other end of the socket, while the next call with read() gives timeout error?

Can...
Forum: Programming 01-19-2015
4,704
Posted By sanzee007
In the below code I tried to read the entered...
In the below code I tried to read the entered text in a buffer and showing the length of data read from stdin.


#include <stdio.h>
#include <wchar.h>
#include <stdlib.h>
#include <locale.h>
...
Forum: Programming 01-17-2015
4,704
Posted By sanzee007
How to read extended ASCII characters from stdin?
Hi,
I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in...
Forum: SuSE 09-30-2014
18,107
Posted By sanzee007
How to add a new user to sudo group in openSuse 12.3?
Hi All,
I have created a openSUSE 12.3 VM in my VirtualBox. I have created one user and added that user to my group.

Is there any command by which I can add that user to sudoers user group like...
3,936
Posted By sanzee007
How to check a single process instance is always running?
Hi,
I want to write one program in C in Unix OS which will check the running status of a process time to time. If the process is stopped somehow by any means, it will ensure that the process is...
1,026
Posted By sanzee007
awk program in perl
Hi All,
I have an AWK code snippet which I want to use in Perl. How can I achieve the same thing in perl? Here I am searching for a pattern in a file and from that matching line, I am extracting the...
1,161
Posted By sanzee007
Asynchronus resource sharing between processes?
Hi,
say I have some pages which I want to share between two processes asynchronously. Which IPC (inter process communication) mechanism is best for this kind of job to complete? Is the same...
Forum: Red Hat 03-13-2014
7,587
Posted By sanzee007
Hi, Thanks for the reply, but it did not work...
Hi,
Thanks for the reply, but it did not work me. I think problem is somewhere else.

thanks
Forum: Red Hat 03-07-2014
7,587
Posted By sanzee007
Gdb error while debugging core file
Hi,
I am trying to analyze one core file on my RHEL 6.5, but I am getting below error related to the core file. So I am not getting any stack trace about the crash.

# gdb MyDebugBin...
2,959
Posted By sanzee007
Server is virtual or physical?
Hi All,
How can I know whether the server I am connecting to is a virtual or physical one? The server might be having any Unix OS (Linux/Solaris/HP-UX etc.).

Is there any system files / commands...
2,339
Posted By sanzee007
Hi, Say, I have a file containing 'netstat -an'...
Hi,
Say, I have a file containing 'netstat -an' output like below -

TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
--------------------...
2,339
Posted By sanzee007
Hi Don, yes, I dnt want to replace the last...
Hi Don,
yes, I dnt want to replace the last number coming after the 4 numbers forming the IP address. So the replacement should consider only the first 4 numbers forming the IP and should replace...
10,712
Posted By sanzee007
Creating array with non-duplicate / unique elements in ksh
Hi all,
I have created 3 arrays which can have common elements in each like-
arr_a contains str1 str2 str3 str4 str5
arr_b contains str3 str6 str7 str1 str8
arr_c contains str4 str9 str10 str2
...
2,339
Posted By sanzee007
Word boundary with awk in ksh
Hi All,
I am searching for IP address pattern in some files which I want to replace with some characters. However when I replace the IP numbers, it also replaces other characters beyond the IP...
6,198
Posted By sanzee007
No, -A option is not working. What I know +A is...
No, -A option is not working.
What I know +A is to append to array, -A is for creating the array clearing off any previous values.
Any other clues..?
thanks for the reply.

---------- Post...
6,198
Posted By sanzee007
How to append to array within conditional block in ksh/korn shell?
Hi,
I have one array created and some values are there in ksh. I want to append some other values to it based on some condition in if statement.

#!/bin/ksh
echo...
23,788
Posted By sanzee007
Hi, Say if the NTP is configured on a system,...
Hi,
Say if the NTP is configured on a system, how can I fetch the ntp server and IP address from any system conf file? Is there any hostname gievn to the ntp server along with the IP address?
I am...
4,290
Posted By sanzee007
Hi DGPickett, Yes, the replaced IP string...
Hi DGPickett,
Yes, the replaced IP string should contain equal number of letter for equal number of digits, like-
12.56.123.9 ->XX.XX.XXX.X
128.32.56.110 -> YYY.YY.YY.YYY

thanks for the reply.
4,290
Posted By sanzee007
Search IP address and replace with strings
Hi All,
How can I find (pattern search with grep/awk/sed) all files containing any IP address pattern in one directory hierarchy and in its sub-directories. The files can contains more than 4 octets...
23,788
Posted By sanzee007
NTP server name and ip details on Linux/Solaris
Hi All,
Where can I find all the NTP server names/ip addresses on Linux/Solaris systems. How can I grep these names/IP address from specific files from a specific OS (Linux/Solaris).
I know on...
8,265
Posted By sanzee007
Hi Jotne, thanks for the reply. The below will...
Hi Jotne,
thanks for the reply. The below will work for korn shell for appending one array to another array. The second array can be one already formed array with values or it can be list of values...
8,265
Posted By sanzee007
Hi Jotne, thanks for the input. by the way if i...
Hi Jotne,
thanks for the input. by the way if i wan to append another array to this array my_array, how can I do that in korn shell?
like - my_array
then adding another array to it-
my_array +=...
2,307
Posted By sanzee007
UID of user accounts on *nix systems
Hi,
As the /etc/passwd file contents all system and other users accounts on a linux/unix system, can anyone tell me what is the User ID values range for human user accounts (not system user...
8,265
Posted By sanzee007
Storing command output in an array
Hi,
I want keep/save one command's output in an array and later want to iterate over the array one by one for some processing. instead of doing like below-
for str in `cat /etc/passwd | awk -F: '$3...
4,526
Posted By sanzee007
Thanks guru for the reply, sorry i can;t go...
Thanks guru for the reply,
sorry i can;t go with perl. However the replacement should be like -
$ cat file
abc 10.122.53
10.122.53.5
efg 25.a23.33.44
12.176.254.24

output-
$ cat file
abc...
Showing results 1 to 25 of 26

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