Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: system() does not wait

by ikegami (Patriarch)
on Nov 30, 2005 at 20:42 UTC ( [id://513095]=note: print w/replies, xml ) Need Help??


in reply to system() does not wait

system normally waits for the child process to finish, but there are exceptions.
  • If you do system "... &" on unix, system will return without waiting for the child process to finish.
  • If you do system -1, ... on Windows, system will return without waiting for the child process to finish.
  • Some application launch another application and exit immediately (like the Windows command start), so system would return immediately too.
  • Running a windowed (as opposed to console) application in Windows will also cause system to return immediately (IIRC).

Replies are listed 'Best First'.
Re^2: system() does not wait
by cbolcato (Novice) on Nov 30, 2005 at 20:45 UTC
    I'm running on a Linux machine and there is no "..&"

Log In?
Username:
Password:

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

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

    No recent polls found