|
|
Up |
|
|
  |
Author: K-mart CashierK-mart Cashier
Date: Feb 29, 2008 19:11
I have a Linux Machine in my apartment with x11 fowarding. It is
connected to the internet via dialup modem. I access X on Linux
Machine from my Laptop at work via SSH. Now when invoke xclock over
ssh, I have to type
clock &
in order to get the graphical clock to appear on my laptop.
How I have to type & after xclock? I thought that once xlock was
placed in the background, the shell would stop the xclock job when it
tried to read from the standard input. However it doesn't.
|
| |
|
| |
11 Comments |
|
  |
Author: Tim FrinkTim Frink
Date: Feb 29, 2008 17:10
Hi,
I want to implement a communication through sockets.
This should work as follows:
I first create a socket with "socket( AF_INET, SOCK_STREAM, 0 );"
bind it to a particular address::port and listen to all clients.
Then I run an external application with "system". This application
uses the same port as previously defined by the socket and sends some
data. This application stays alive.
Finally, I would like to read the data that I received from the
socket from the external application. However, the problem I have
is that my program does not get to the point where I can evaluate
the received data since it gets stuck in the invoked external
application which stays alive. So, I look for an approach to
run the external application as a separate process that will
be started, remains in memory (this is automatically done) and
return control to the caller (where I've defined the socket).
Any ideas what I should use instead of "system" to run the external
application in a sort of a parallel thread?
|
| Show full article (1.03Kb) |
|
| |
2 Comments |
|
  |
Author: ChristinaChristina
Date: Feb 29, 2008 14:01
Hi Everybody,
I want to implement a file cache on Linux. I want to know what my
options are and what are the different ways in which I can implement
the file cache:
For instance, if I have a set of 4 processes and I want to intercept
the open(), read(), write() and close() system calls made by these 4
different PIDs and redirect those calls through my caching mechanism.
1. Could I do it in a user level library, for instance, if I write a
library interposer to intercept the system calls and then allocate a
chunk of memory. Will that be able to serve as my cache?
2. Could...
|
| Show full article (2.08Kb) |
|
5 Comments |
|
  |
Author: GsecGsec
Date: Feb 29, 2008 13:36
I have a process running , and it is crashing at some point..I have
attached the gdb to the PID of the application, and then did a
continue,because my application does not proceed further without doing
continue. But, when it crashes, it recved SIGSEGV, but it immediately
continued ,and I couldn't have the time to do "bt" on it.
So, is there any way to go to the crash point ? Can I put some
breakpoint in system functions (which i am not aware) which will hit
when the application crashes and I can get the point of crashing ?
thanks.
|
| Show full article (0.87Kb) |
|
1 Comment |
|
  |
Author: GigiGigi
Date: Feb 29, 2008 13:28
Hi,
Not sure if this is the right place to ask but anyway...
I need to learn to use libpcap... I downloaded the source and
installed it as per instructions (which created a libpcap.a). But I
still don't have the header files (such as pcap.h) and have no clue
where to find them. Can anyone help?
Thanks
|
| |
|
no comments
|
|
  |
Author: DaLoverhinoDaLoverhino
Date: Feb 29, 2008 08:48
Is there a command in gdb that you can issue interactively to save the
output of gdb to a file? Something like a typescript command.
Using the script command, then firing up gdb is not possible in the
environment I am in.
thanks.
|
| |
|
1 Comment |
|
  |
Author: sadafsadaf
Date: Feb 28, 2008 19:05
Interested in Building Online Business Empire Without Investing
Single Dollar!!
Explore The Best Online Income Opportunity On The Internet Today -
Absolutely FREE!
EARN UNLIMETED WITHOUT INVESTMENT WITH On The Net..
"on top of the primary purchase and MAKE MORE MONEY WITHOUT DOING ANY
ADDITIONAL WORK!"
For More Details; http://moneybusinessideas.blogspot.com/
|
| |
|
no comments
|
|
  |
Author: sinbadsinbad
Date: Feb 28, 2008 02:59
is there any tool that displays the function call trace dynamically
and writes to a file or something like that. If it is any simple
library that links to my app. will be good.
thanks
sinbad
|
| |
|
3 Comments |
|
  |
|
|
  |
|
|
  |
Author: VVVV
Date: Feb 27, 2008 17:15
On Feb 28, 3:49Â am, "jason.cipri...@ gmail.com"
gmail.com> wrote:
> On Feb 27, 5:58 am, VV gmail.com> wrote:
>
>> in our application, i need to  decode different binary & text based
>> protocols (communicating to the equipment over a serial link)
>> implemented by different OEM. because each OEM will have their own
>> binary protocol to communicate with the equipment, with some minor
>> changes..
>
>> What would be the best way to build a generic protocol parser for the
>> binary & text based implementation.?
>
> What you ask for is too vague. You have not given any specifics about
> the type of hardware you are dealing with, the type of information you
> are trying to obtain, what you are using it for, and what is similar/
> different about the various "protocols" that you mention. It's not
> reasonable to attempt to build a "generic protocol parser" that can
> somehow parse meaningful information from input of any arbitrary
> format. Although.... if you think about it, I suppose you could view ...
|
| Show full article (3.76Kb) |
|
no comments
|
|
|
|
|
|
|