in reply to exec vs. system
system("swap.pl &") will put swap.pl into the background (a feature of the shell).
By the way, wouldn't it be easier to give the data as parameter to swap.pl, i.e. system("swap.pl \"$_\" &") ? This would only work for non-binary data naturally and you would have to escape " \ and $ in the string
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: exec vs. system
by jpl (Monk) on Jul 07, 2011 at 17:39 UTC | |
|
Re^2: exec vs. system
by Microcebus (Beadle) on Jul 07, 2011 at 13:08 UTC | |
by jethro (Monsignor) on Jul 07, 2011 at 14:30 UTC | |
by jpl (Monk) on Jul 07, 2011 at 18:00 UTC |