Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: launching another program but using the existing socket

by nardo (Friar)
on Jul 22, 2001 at 03:34 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-05-16 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?