Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: script hangs after executing program

by moklevat (Priest)
on Dec 15, 2006 at 17:10 UTC ( [id://590060]=note: print w/replies, xml ) Need Help??


in reply to script hangs after executing program

I'm not certain I can help with the specific problem without knowing more about $prog. However, I wonder if when you say you tried open, you meant to say exec instead, because open and system are not similar system and exec are similar.

Updated: monkey_boy points out below how system and open can indeed be similar, but without knowing what $prog is doing I don't know that it can be assumed to be so in this case. However, I updated the text above to say what I mean more clearly.

My apologies to open, I meant no disrespect.

  • Comment on Re: script hangs after executing program

Replies are listed 'Best First'.
Re^2: script hangs after executing program
by monkey_boy (Priest) on Dec 15, 2006 at 17:13 UTC
    open and system can be very similar.. what happens when you do this:
    open ( my $fh , "ps -elf |"); print $_ while(<$fh>);



    This is not a Signature...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (None)
    As of 2024-04-25 01:43 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found