pedrete has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks...
i need to run many externals commands from my Perl script and capture both return-code and STDOUT. These commands must run under a shell...
To my knowledge, Perl always does a fork and then waits for the child to run the command, am i right?
Is there any way to prevent that "fork"? i am looking for the "cheapest way" in terms of CPU and Memory load...
THX!!!
Pedreter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cheapest way for multiple external commands
by haukex (Archbishop) on Jan 24, 2020 at 19:35 UTC | |
by pedrete (Sexton) on Jan 27, 2020 at 09:56 UTC | |
by NERDVANA (Priest) on Jan 27, 2020 at 21:06 UTC | |
by afoken (Chancellor) on Jan 27, 2020 at 23:20 UTC | |
|
Re: Cheapest way for multiple external commands
by karlgoethebier (Abbot) on Jan 25, 2020 at 09:24 UTC | |
|
Re: Cheapest way for multiple external commands
by mhearse (Chaplain) on Jan 24, 2020 at 23:12 UTC |