Search Results

Search: Posts Made By: NH2
Forum: IP Networking 06-17-2012
2,350
Posted By NH2
Pinging IP located on another interface
Hi,

I have a rather strange IP question...

Here's my problem:

I have a Linux box (call it "turing") with 2 NICs.
One network interface (eth0) has an IP assigned, say 192.168.42.50.
...
Forum: Programming 09-26-2011
7,592
Posted By NH2
If you really want to learn how write parser in...
If you really want to learn how write parser in C++ efficiently, then spend time with boost::spirit (http://boost-spirit.com/home/). The learning curve is steep at the beginning, but then the ROI is...
Forum: Programming 09-26-2011
4,573
Posted By NH2
Hi eoa, Hope I'll manage to look at your...
Hi eoa,

Hope I'll manage to look at your log the next days.

Meanwhile, if you suspect the Linux Client (as your investigations seem to point to), it could be a good idea to test against...
10,298
Posted By NH2
What did not work? The sed command looks good,...
What did not work? The sed command looks good, but you need either:

to redirect the output produced by sed to a file, or
to change in place using the option '-i'. I recommend to make a...
Forum: Programming 09-26-2011
5,337
Posted By NH2
Hi Zacharoni, Thinking that way is...
Hi Zacharoni,



Thinking that way is the best premise for troubles. You need to use semaphore, as long as the memory is accessed concurrently by 2 or more processes ( Ok, there are way to come...
Forum: Programming 09-21-2011
1,591
Posted By NH2
Alternatively, you could set-up Ubuntu in a...
Alternatively, you could set-up Ubuntu in a virtual machine, or use wubi (http://www.ubuntu.com/download/ubuntu/windows-installer)

Brgs,
/Lew
2,777
Posted By NH2
Gidday, The question is too rough to...
Gidday,



The question is too rough to be answered precisely. Generally speaking, the following pattern is meant:
1) You have one thread that epoll() some I/O event
2) When some I/O becomes...
Forum: AIX 09-20-2011
2,168
Posted By NH2
This is a well known issue on AIX for that...
This is a well known issue on AIX for that version of net-snmp. Use the newest version, or if you can't use the work around found on the net (simply google for: nlist err: neither proc nor _proc...
3,554
Posted By NH2
I do not know. If the mysql interface...
I do not know.

If the mysql interface you're using is well-known, chance is that either you made a mistake when using the interface or the interface has a (probably known) bug. If you can prove...
3,554
Posted By NH2
I see nothing wrong with the trace (copied below...
I see nothing wrong with the trace (copied below with an other formatting):

connect(4, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("XX.XX.XX.XX")}, 16) = -1...
3,434
Posted By NH2
Unless there is some kind of auditing, I am...
Unless there is some kind of auditing, I am afraid that all bets are off.

/Lew
Forum: Programming 09-17-2011
4,573
Posted By NH2
Hi, You could use a command similar to...
Hi,



You could use a command similar to the following to allow trace the communication between your server running at port 17398 and your client(s):
tcpdump -i <interface> src port 17398 or...
Forum: Programming 09-17-2011
6,795
Posted By NH2
Hi! Strange. Can you check if the...
Hi!



Strange. Can you check if the following works on your platform:


/* foo.c */
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
...
Forum: Programming 09-16-2011
4,573
Posted By NH2
Gidday, To confirm this assumption,...
Gidday,



To confirm this assumption, it would be useful to tcpdump what the OP did above. We would see what happens at the protocol level, and possibly trace kernel misbehavior. I'd be in...
31,026
Posted By NH2
Is that a real problem? You could create a group...
Is that a real problem? You could create a group for the users that need to edit /etc/resolv.conf, gives write permission to /etc/ and /etc/resolv.conf for that group. As long as the other files in...
Forum: Red Hat 09-11-2011
13,459
Posted By NH2
Question: where does this assumption come from?...
Question: where does this assumption come from? (hardware spec, I guess?).

Thanks,
/Lew
Forum: Programming 09-11-2011
4,527
Posted By NH2
Alright, fair enough. This is IMHO a good project...
Alright, fair enough. This is IMHO a good project to start and learn.

It has been a long time I've done this, but unless my memory is defective, you'll definitely need to learn about libpcap....
Forum: Ubuntu 09-09-2011
1,438
Posted By NH2
If you don't have backup, might worth to give a...
If you don't have backup, might worth to give a try to use a rescue CD to either

have a minimal working system, mount disk and possibly backup data offline, or
re-install the whole system (lib...
Forum: Programming 09-09-2011
7,021
Posted By NH2
Because '-pedantic' assumes that you're using...
Because '-pedantic' assumes that you're using ISO C90. In this previous standard, variable length array was forbidden.

If you want to use '-pedantic' , adds e.g. '-std=c99' to make sure...
31,026
Posted By NH2
Kind of, but may not offer all the flexibility...
Kind of, but may not offer all the flexibility you want. For instance, to allow user nh2 to copy foo to /home/bar, put in your /etc/sudoers file

nh2 ALL=(ALL) NOPASSWD: /bin/cp foo /home/bar
...
2,307
Posted By NH2
OK, now I got it. bartus11 showed one way. ...
OK, now I got it. bartus11 showed one way.

Of course, this assumes that you're using shadow identification method and that you're using proper locking to manage properly possible concurrent...
2,307
Posted By NH2
What Do u mean by "updating password change time"...
What Do u mean by "updating password change time" exactly?

/Lew
3,388
Posted By NH2
AFAIK, there are only certifications available...
AFAIK, there are only certifications available for some given UNIX brand. Which one are you interested in particular?

/Lew
2,307
Posted By NH2
man usermod HTH, /Lew
man usermod

HTH,
/Lew
Forum: Programming 09-07-2011
11,827
Posted By NH2
There are many problems with your code. So let's...
There are many problems with your code. So let's start with the beginning and move towards a working solution.

First, you should always check the returned code from a system call, It it fails,...
Showing results 1 to 25 of 30

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