in reply to Re: exec vs. system
in thread exec vs. system

Thanks for that reply but system("swap.pl &") seems not to put the process into the background. The master script still waits untill swap.pl is finished.

Replies are listed 'Best First'.
Re^3: exec vs. system
by jethro (Monsignor) on Jul 07, 2011 at 14:30 UTC
    Ah, so you probably are on Windows. At least I never heard of system(1,...) being sensible syntax, so probably this is an extension in your windows perl dialect
      I never heard of system(1,...) being sensible syntax, so probably this is an extension in your windows perl dialect.
      It would be sensible syntax if there were a command named "1" that ran its arguments on processor 1 in the background. I have to hope this is what's going on. Tampering with perl syntax would be too ugly to contemplate.