Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Unable to 'exec'

by Technext (Acolyte)
on Aug 21, 2012 at 14:09 UTC ( [id://988750]=note: print w/replies, xml ) Need Help??


in reply to Re: Unable to 'exec'
in thread Unable to 'exec'

Thanks for your reply. I couldn't test this because i had no access to system during weekend.

I had used Parallel::ForkManager earlier (in another script). I wanted to use fork here so never went for that. Anyways, i gave it a try right now. I get the same output. :(

Am i wrong in assuming that the result would not have changed because i anyways had to use the same exec command here too between the first and third line given below?

my $pid = $pm->start and next; ... do some work with $data in the child process ... $pm->finish; # Terminates the child process

Replies are listed 'Best First'.
Re^3: Unable to 'exec'
by Technext (Acolyte) on Aug 21, 2012 at 15:49 UTC
    Apologies! I did change my script to try the module you suggested but while running, i was calling a different script :P Sorry for that.

    It's working with the Parallel::ForkManager module! :)

    Well, i am on the lookout for modules whenever i have some issue to fix. While writing this script, i thought let's leave modules and use the basics ('fork'). Looks like it was a wrong choice for me at least for this problem. :D Anyways, thanks a lot sundialsvc4! This issue was disturbing me for quite some time now. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-20 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found