From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: How to redirect? Date: 16 Sep 1999 11:29:57 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 22 Message-ID: <7rqkbl$n1d$2@antares.lu.erisoft.se> References: <37E1145F DOT 3F16 AT TU-Berlin DOT DE> NNTP-Posting-Host: propus-144.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Klaus Reinhardt (K DOT Rdt AT TU-Berlin DOT DE) wrote: : ----------------- mailto:K DOT Rdt AT TU-Berlin DOT DE start ------------------- : Hello! : It's a Pascal(fpc)-program, but perhaps someone from this group could : help. : exec('c:\g32\bin\ls.exe',' -l y > log'); : gives: : c:/g32/bin/ls: >: No such file or directory (ENOENT) : Klaus. : ----------------- mailto:K DOT Rdt AT TU-Berlin DOT DE !end! ------------------- If that Pascal exec() is anything like the C exec() (which your error message seems to imply) then try "exec('c:\g32\bin\ls.exe', 'c:\g32\bin\ls.exe',' -l y > log');". Right, MartinS