Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: system() does not wait

by GrandFather (Saint)
on Nov 30, 2005 at 20:45 UTC ( #513098=note: print w/replies, xml ) Need Help??


in reply to system() does not wait

Show us some code. See I know what I mean. Why don't you? for specific hints about posting code for this sort of problem (use a script generated csv if you really need a DB for example).

Make sure your code demonstrates the problem and only contains pertinent code.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: system() does not wait
by cbolcato (Novice) on Nov 30, 2005 at 20:51 UTC
    I haven't been able to re-create with test code, and I cannot post production code, but $? >> 8 = 16777215 for SCRIPT1 while SCRIPT2 is still running.

      Start with your production code and delete a section at a time until you find the sensitive chunk, then focus on that. It is very unlikely that you require the full code for both scripts to reproduce the problem. ikegami's suggestion that you are in some fashion launching a shim that launches something else to do the real work then exits is the best answer so far without any further information, but doesn't sound likely in your case where you are launching another Perl script.

      At the very least post the three or four pertinent lines around the system call.


      DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-01-23 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?