Re: sh command issue

2010-05-05 Thread Jon Dowland
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

RE: sh command issue

2010-04-30 Thread Gary
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

Re: sh command issue

2010-04-30 Thread Boyd Stephen Smith Jr.
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

sh command issue

2010-04-30 Thread Gary
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