Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: launching another program but using the existing socket

by nardo (Friar)
on Jul 22, 2001 at 03:34 UTC ( [id://98723]=note: print w/replies, xml ) Need Help??


in reply to launching another program but using the existing socket

If you want an inetd type program which will execute another program where the program's stdin and stdout will be the socket, you can do something like:
open(STDOUT, '>&'.fileno($socket)); open(STDIN, '<&'.fileno($socket)); exec("$program_path");

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found