EXEC()在后台运行进程 [英] EXEC() Runs process in background

查看:124
本文介绍了EXEC()在后台运行进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Exec,shell_exec,system,popen函数都在

背景中运行该过程。

如何让它正常运行该过程。

我的代码如下所示:

< ;?

exec(" batch_file.bat");

?>


我做错了什么?


谢谢

解决方案

2006年1月17日15:16:52 -0800, gi ******* @ gmail。 com 写道:

Exec,shell_exec,system,popen函数都在
后台运行。


他们通常不会,除非你做一些相当具体的事情才能让他们去。

我怎么能让它正常运行这个过程。我的代码看起来像这样:
< ;?
exec(" batch_file.bat");
?>

我做错了什么?




batch_file.bat中有什么?


-

Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space ::磁盘和FTP使用情况分析工具


< blockquote> gi*******@gmail.com 写道:

Exec ,shell_exec,系统,popen函数都在
后台运行。




你的意思是什么?


什么w你想发生什么?
反而会发生什么?


-

如果你是通过谷歌发帖阅读< ; http://cfaj.freeshell.org/google>


Pedro Graca写道:

gi ******* @ gmail.com 写道:

Exec,shell_exec,system,popen functions all在
背景中运行该过程。



你的意思是什么?

你想发生什么?
会发生什么?




我认为他/她希望这个同步运行而不是

异步? (所以它会执行,等待它完成,然后回到

到php脚本?


也许有一些文件是由shell创建的脚本/程序??


-

a牛肉干网站 http://www.choicebeefjerky.com.au

不是牛肉干的网站 http://mycoolwheels.com/vote.cmks

大多数助产士没有孩子


Exec, shell_exec, system, popen functions all run the process in the
background.
how can i get it to run the process normally.
my code looks like this:
<?
exec("batch_file.bat");
?>

am i doing anything wrong?

thanks

解决方案

On 17 Jan 2006 15:16:52 -0800, gi*******@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?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool


gi*******@gmail.com wrote:

Exec, shell_exec, system, popen functions all run the process in the
background.



What do you mean?

What would you like to happen
and what happens instead?

--
If you''re posting through Google read <http://cfaj.freeshell.org/google>


Pedro Graca wrote:

gi*******@gmail.com wrote:

Exec, shell_exec, system, popen functions all run the process in the
background.



What do you mean?

What would you like to happen
and what happens instead?



I think he/she wants this to run synchronously as opposed to
asynchronously? (so it will execute, wait for it to finish, then come back
to the php script?

Maybe there is some file being created by the shell script/program??

--
a beef jerky site http://www.choicebeefjerky.com.au
not a beef jerky site http://mycoolwheels.com/vote.cmks
most midwives do not have children


这篇关于EXEC()在后台运行进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆