Search Results

Search: Posts Made By: diganta
13,439
Posted By diganta
Handling SIGUSR2 signal
HI,

I need to handle SIGUSR2 signal in my application to change the state of the application dynamically. I have implemented the signal handler. However the application is able to catch only one...
4,111
Posted By diganta
Problem with exit status
Hi,

Consider the output of the following commands:

case1)
-------
# ifconfig -a | grep "UP" | grep uplink0:1
# echo $?

Output is: 0

case2
------
# ifconfig -a | grep "UP" | grep...
Forum: Programming 04-20-2005
3,709
Posted By diganta
How to handle memory error?
Hi,

I need to know what is the right way of handling out of memory conditions. If a program is not able to dynamically allocate memory (new fails), is it right to wait for some amount of time (say...
Forum: Cybersecurity 02-24-2005
11,337
Posted By diganta
tcpdump tut for beginners
Following is a very good link to understand tcpdump for beginners.

http://www.aei.ca/~pmatulis/pub/tcpdump.html
3,846
Posted By diganta
Solution found
I have finally figured out the problem. While compiling we were using some custom made libraries. Now in these libraries somewhere someone had implemented his own version of popen. Our call to popen...
Forum: Cybersecurity 02-01-2005
11,337
Posted By diganta
How to decipher tcpdump file
Hi,

I am stuck with a tricky situation in which one of my applications is flooding the network with UDP messages. The architecture of the application is not supposed to do so. Neither is there any...
3,846
Posted By diganta
I have tried copying "line" to another variable...
I have tried copying "line" to another variable and passing it to popen. I have tried printing "line" and the temp variable also. I have even tried printing "line" twice by calling gen_log() also....
3,846
Posted By diganta
I am pretty sure gen_log() is not modifying...
I am pretty sure gen_log() is not modifying "line". It is a generic fn. we use in most of our applications for generating error logs. I have tested it. It is not modifying "line".
3,846
Posted By diganta
Agreed that popen cannot modify "line". But...
Agreed that popen cannot modify "line". But somehow that is what is happening. We cannot use printf here as the application is running as a deamon. I have called a function just before and after...
3,846
Posted By diganta
ftp application behaving erratically
Hi,

I am working on a custom made FTP application. The application is behaving erratically for the "ls" command. Wild card character passed to the "ls" command (like "ls *temp") is giving...
Forum: Solaris 12-24-2004
7,447
Posted By diganta
thanks
Thanks! My problem is solved.
Forum: Solaris 12-24-2004
15,918
Posted By diganta
can the error be with compilation
Can the problem be related to the makefile? The application uses a very complex makefile to compile. Can the problem be due to wrong way of compiling (if there is any such thing)? It uses a lot of...
Forum: Solaris 12-23-2004
15,918
Posted By diganta
popen throws 'bad file number' error
Sorry, I didn't get time to look into the real issue.

After putting some debugging logs I found that popen is throwing "Bad file number" error on the first call with "/bin/ls -l" as the argument....
Forum: Solaris 12-17-2004
15,918
Posted By diganta
serious problem with popen
The problem is not supposed to be with popen. popen is a standard function and I do not think that it will modify the value of "line". It must be getting modified somewhere else somehow. The value...
Forum: Solaris 12-15-2004
15,918
Posted By diganta
It seems I have found where the problem is. The...
It seems I have found where the problem is. The problem is not with the assignment statement as stated above. It is in a call to popen. After calling popen as

fin = popen (line, "r");

the...
Forum: Solaris 12-14-2004
15,918
Posted By diganta
the above code is working if I copy paste it and...
the above code is working if I copy paste it and then compile it. However in my application there is one more line after the call to sprintf

name = line;

the value are ok before this line. only...
Forum: Solaris 12-13-2004
15,918
Posted By diganta
popen truncates the command line passed to it
********************************
Following is not the real issue. The issue is with popen.
Plz continue forward with the thread to get a better picture.
********************************

Hi,
...
Forum: Solaris 12-01-2004
7,447
Posted By diganta
ioctl() fails to get window size from console login
Hi,

I need to get the console window size for an application, for which I used ioctl() by passing the TIOCGWINSZ parameter. The ioctl() function does not fail (returns non zero), but it could not...
Showing results 1 to 18 of 18

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