Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: exec() on Windows

by lamprecht (Friar)
on May 26, 2010 at 12:09 UTC ( #841717=note: print w/replies, xml ) Need Help??


in reply to exec() on Windows

Hi,

system("start", "/B","test.html");

Cheers, Christoph

Replies are listed 'Best First'.
Re^2: exec() on Windows
by vitoco (Friar) on May 26, 2010 at 14:00 UTC

    Thanks. It worked both as .pl and .exe (pp).

    I was trying calling cmd.exe directly to detach child processes without waiting for them, but this way is far much clear.

    Strange that "start" with exec() does not work.

      start is a "shell builtin" command and does not exist as an external program, which is why it does not work with exec.

        Which means it shouldn't work for system either, except system is hacked to make this work on Windows. It explicitly behaving differently than documented.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://841717]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2016-12-08 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.