Title: Passing file descriptors around

Hi guys...

I use a Java application to launch an external program, via exec(). My Java application opens a socket which I want to pass to the external application and use it there. I have tried the easy way of passing the file descriptor (i.e., the int value) of the socket as a command-line parameter to the external application and, rather unsurprisingly, the thing doesn't work.

Does anyone know how to do that in a "quick and easy" way?

Thanks,

Dimitris

Reply via email to