re: [PHP-GTK] system command

From: Date: Mon, 12 Mar 2001 16:47:01 +0000
Subject: re: [PHP-GTK] system command
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-703@lists.php.net to get a copy of this message
How would I go about doing this on windows? :-) Also do you know if I can send a command to the file I want to open in the background? Thank you for your time! Josh Seward js389599@ohiou.edu _________________________________________________________________________ > This is because when you execute another application from a php script > the script is waiting for the appliction to return some data and then > exit. In order to avoid this on a unix box at the end of you > application put a ">" to send the data to a file or /dev/null and then > at the end put a "&" this tells unix to take the execution of the > program and move it to a background process. On Windows however this is > a little bit trickier. > > system("/sbin/fsck > /tmp/fsck 2>&1 &"); > > This would in effect execute fsck and send all output (level 1 and 2) to > /tmp/fsck and have it excute in the background. > > Later, > Ed McLain > ___________________________________________________________________ > I am working on a script to open another program and let it run. I need > to let that program run it the background and for the php prog. to > continue running. Everytime I open the new program, he php prog. hangs. > I am using the system command but I am not sure how to send the > variables to another fiel instead of having them come back the the php > prog. Could someone tell me exactly how to do this with the system > command? > > Thanks, > Josh Seward > js389599@ohiou.edu > > >

« previous php.gtk (#703) next »