Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Problem with 'system' function in Windows Vista

by Joost (Canon)
on Mar 20, 2007 at 17:36 UTC ( #605717=note: print w/ replies, xml ) Need Help??


in reply to Problem with 'system' function in Windows Vista

I keep forgetting what system(1, @command) does. (it's windows specific, right?)

If you're trying to run and wait for the the command to exit, have you tried using system(@command) instead?


Comment on Re: Problem with 'system' function in Windows Vista
Re^2: Problem with 'system' function in Windows Vista
by jdtoronto (Prior) on Mar 20, 2007 at 17:46 UTC
    Hi Joost,

    The

    I keep forgetting what system(1, @command) does. (it's windows specific, right?)
    Is Windows specific, it is meant to give a non-blocking system call - it gets the result of the creation of the child process and returns it. I have also tried it without the 1, works as expected and gives the same error.

    jdtoronto

Re^2: Problem with 'system' function in Windows Vista
by ikegami (Pope) on Mar 20, 2007 at 17:48 UTC

    system(1, ...) is a Windows extention to create a process that runs asynchronously. It's an alternative to fork+exec. Unlike fork, system(1, ...) is natively supported, so it's much more resilient.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-12-18 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls