Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: question about running a system and a perl function background

by Anonymous Monk
on Jan 07, 2005 at 05:44 UTC ( [id://420179]=note: print w/replies, xml ) Need Help??


in reply to Re^5: question about running a system and a perl function background
in thread question about running a system and a perl function background

Hello,

I am still working on this. Due to some complicated issues in my system, I have decided not to use threads...is there a way I can do the same thing using fork and exec?

Please suggest. Thank you.

  • Comment on Re^6: question about running a system and a perl function background

Replies are listed 'Best First'.
Re^7: question about running a system and a perl function background
by BrowserUk (Patriarch) on Jan 07, 2005 at 05:56 UTC
    is there a way I can do the same thing using fork and exec?

    As forking uses threads on my system, I've never explored it's use to any great extent.

    It is probably possible using some arrangement whereby the original process sets up a separate STDOUT/STDIN prior to forking each command and then uses select to read the ouput from the child processes back into the parent for further processesing, but I am the wrong person to be advising on that.

    Hopefully someone with more experience of the fork & exec style of coding will step up and provide an example solution.

    I would also learn a lot from a worked example of this.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2025-06-12 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.