How could I redirect output generated by GPC so that it goes to a file? I tried -v but had no luck in capturing the errors. I want to do the following...
gpc source.pas > file.err
and have the compiler messages redirected to the file.
See ya! Orlando Llanes
"Hey, we all did the drug thing, we all did the money thing, and eventually you find out that none of that stuff fixes anything, and we have nowhere else to go except to evolve spiritually and intellectually" -- Meredith Brooks
"Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org /|____. O <__. /> / \ ____________|_________ http://ourworld.compuserve.com/homepages/Monkey414
I beleive that gpc outputs to STDERR does it not? I know that gcc does, so you would have to do something like
gpc source.pas 2>&1 file.err
Matthew Wiggins
On Sat, 13 Dec 1997, Orlando Llanes wrote:
How could I redirect output generated by GPC so that it goes to a file? I tried -v but had no luck in capturing the errors. I want to do the following...
gpc source.pas > file.err
and have the compiler messages redirected to the file.
See ya! Orlando Llanes
"Hey, we all did the drug thing, we all did the money thing, and eventually you find out that none of that stuff fixes anything, and we have nowhere else to go except to evolve spiritually and intellectually" -- Meredith Brooks
"Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org /|____. O <__. /> / \ ____________|_________ http://ourworld.compuserve.com/homepages/Monkey414
I beleive that gpc outputs to STDERR does it not? I know that gcc does, so you would have to do something like
Sorry, I forgot to say that I'm using DOS :( I tried what you wrote anyway, but DOS would just write to the file &1 I looked in the DOS Programmer's Reference (from DOS 6.0), and the handle to StdOut and StdErr are different, it looks like DOS only redirects StdOut at the command line.
See ya! Orlando Llanes
"Hey, we all did the drug thing, we all did the money thing, and eventually you find out that none of that stuff fixes anything, and we have nowhere else to go except to evolve spiritually and intellectually" -- Meredith Brooks
"Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org /|____. O <__. /> / \ ____________|_________ http://ourworld.compuserve.com/homepages/Monkey414