On 30/04/10 19:34, Gary wrote:
> system("g++ $files $incl $libs 2>build.log&");
Note this is risky: the system call will return as soon as the g++
process is invoked, rather than when it completes - the trailing '&'
should be removed. Also, any stdout output will still hit your console
(although
system("g++ $files $incl $libs 2>build.log&");
The above works... thanks!
-Original Message-
From: I Rattan [mailto:ratt...@cps.cmich.edu]
Sent: Friday, April 30, 2010 12:03 PM
To: Gary
Subject: Re: sh command issue
On Fri, 30 Apr 2010, Gary wrote:
> I'm
On Friday 30 April 2010 12:39:00 Gary wrote:
> I have a php file used to make the build, and the file contains these
> lines..
>
> system("g++ $files $incl $libs >& build.log");
> # system("g++ $files $incl $libs");
>
> The first line fails with an error "sh: Syntax error: Bad fd number
I'm helping a fella in the UK with a debian build (tiny web) on a small VM
machine in a data center. I am trying to compile some c++ code, I have the
libs and binaries installed and the compile "works", except for this line...
I have a php file used to make the build, and the file contains these
4 matches
Mail list logo