--- In [email protected], Mickey Mathieson <[EMAIL PROTECTED]> wrote: > > > --- "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > > > On 04 Apr 2007 07:21:53 -0700, Tamas Marki > > <[EMAIL PROTECTED]> wrote: > > > On 04 Apr 2007 07:07:35 -0700, sanofsans > > <[EMAIL PROTECTED]> wrote: > > > > The command line is system("script"); and not a > > perl command. > > > > I am running it on Windows. Any suggestions? > > > > > > Ah, I thought that you were the one who asked > > about executing a perl script. > > > But my recommendation still applies, just use it > > like that: > > > > > > system ("script > output.txt"); > > > > An alternative is to use the popen() function form > > stdio.h and be able > > to grab the output directly from the running process > > inside your C > > code. > > > > (Does popen() work on Windows?) > > > > -- Brett > > http://msdn2.microsoft.com/en-us/library/96ayss4b(vs.71).aspx
And, in contrary to the statements at this web site, popen() is defined in stdio.h since at least compilers for Windows 98. Regards, Nico
