in reply to Re^4: exec vs. backtick-and-assign performance
in thread exec vs. backtick-and-assign performance
Running the program manually takes effectively zero seconds, as indicated by my mentions of the fact that running it with exec() is essentially instantaneous.
I thought you meant it started immediately, I didn't see anything about it also finishing quickly.
It may be that the command is checking slowed down / confused by the capturing of it's STDOUT. it might be looking for a tty or something similar. In that case, the easiest solution should be to use system() (or exec(), ofcourse)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: exec vs. backtick-and-assign performance
by apotheon (Deacon) on Nov 13, 2006 at 00:24 UTC |