You are here: Re: EXEC() Runs process in background « PHP Programming Language « IT news, forums, messages
Re: EXEC() Runs process in background

Posted by Robin Haswell on 01/19/06 13:11

On Tue, 17 Jan 2006 23:56:47 +0000, Andy Hassall wrote:

> On 17 Jan 2006 15:16:52 -0800, giloosh99@gmail.com wrote:
>
>>Exec, shell_exec, system, popen functions all run the process in the
>>background.
>
> They don't normally, unless you do something fairly specific to get them to.
>
>>how can i get it to run the process normally.
>>my code looks like this:
>><?
>>exec("batch_file.bat");
>>?>
>>
>>am i doing anything wrong?
>
> What's in batch_file.bat?


I think your problem is MS Access is forking and running in the
background, causing the BAT to exit.

Open up a command window and run your bat file in it. How long before your
BAT exits and goes back to the command prompt? If the answer is "before I
close MS Access", then there's nothing you can do about it.

-Rob

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация