Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > external processes without waiting for return
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 1st April 08:28
changereality@gmail.com
External User
 
Posts: 1
Default external processes without waiting for return



In php how do I call an external script or program without having php
waiting for the return?

exec and system both seem to wait for the return, I don't want this.
  Reply With Quote


  sponsored links


2 1st April 20:48
janwillem borleffs
External User
 
Posts: 1
Default external processes without waiting for return



On *nix systems, try pushing it to the background:

exec("command &");


JW
  Reply With Quote
3 2nd April 05:45
nc
External User
 
Posts: 1
Default external processes without waiting for return


You can still use exec() or system(), but you need to modify your
command line. On Unix, you can add "&" to yout command line to
execute your request in the background. On Windows, you can put
"start" in front of your command line to launch a new instance
of command interpreter (type "help start" at your command prompt
for more information).

Cheers,
NC
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666