Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: backticks, system not returning back control to script

by jakobi (Pilgrim)
on Oct 28, 2009 at 11:12 UTC ( [id://803655]=note: print w/replies, xml ) Need Help??


in reply to backticks, system not returning back control to script

Without a cut-down and running code example of your problem, we can only guess.

If you'd ask me for a blind guess, I'd suggest to prepend/append an echo redirected to a file to the command being executed - funny filenames can have interesting effects. Secondly, your print statement after system() might indeed execute but get buffered (instead of being flushed) while your script hangs _after_ returning from system().

For debugging, consider something like warn("system returned with output: ...\n") if $o_debug. For further ideas, consider Debugging and Optimization

cu & HTH, Peter -- hints may be untested unless stated otherwise; use with caution & understanding.

Log In?
Username:
Password:

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

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

    No recent polls found