comp.unix.programmer
  Home FAQ Contact Sign in
comp.unix.programmer only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.unix.programmer Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  What's the difference between xclock and clock & ?         


Author: K-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
  Invoking application in thread         


Author: Tim 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
  How to implement a File Cache on Linux         


Author: Christina
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
  GDB help needed !         


Author: Gsec
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
  libpcap         


Author: Gigi
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
  gdb question.         


Author: DaLoverhino
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
  !!! Make money online free work at home guide home based business!!!         


Author: sadaf
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
  lib for dynamic call trace         


Author: sinbad
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
  Intercepting system calls on Linux         


Author: Christina
Date: Feb 27, 2008 22:34

Hi Everybody,

I want to intercept the open(), read(), write() and close() system
calls on Linux. This can be done in 2 ways:

1. I write a Linux Kernel Module which intercepts these calls.
Eg. http://85.147.245.113/mirrorbooks/networksecuritytools/0596007949/networkst-CHP-7...
2. I can also write a library and then link this library to the
applications whose system calls I would like to intercept.
Eg. http://developers.sun.com/solaris/articles/lib_interposers.html

My question is how do I write this library on Linux (steps to write
and compile this library), since the only link which I found above is
for Solaris.

Could somebody please help me?

I would really appreciate your help.

Thanks and Regards,
Christina.
9 Comments
  Re: Generic Protocol Parser         


Author: VV
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
1 2 3 4 5 6 7 8 9