Single cmd session for all exec() calls - is this possible?
| From: | Melmack | Date: | Wed, 12 Sep 2007 10:57:23 +0000 |
| Subject: | Single cmd session for all exec() calls - is this possible? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-28481@lists.php.net to get a copy of this message | ||
Hello
My PHP script executes many cmd commands.
Functions like "exec()" or "system()" cause that new cmd session
is started,
the command is executed and the session is closed. Unfortunately
it is very slow process so I would like to increase performance and
open one cmd session on the begin of my script and execute
the commands such as in normal system opened cmd window and close
it
at the end of my PHP script.
Does anybody know whether and (if yes) how can I do that?
PS. I need the retrieve informations from previous command before
executing next command because next command is strongly dependent on
the
results from previous command.
Best regards
Melmack