|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
would be most grateful for the answer...
I am running compiles in DOS from the "dosprompt" or "consol" that W98
provides and I want to stream the compiler errors, which are normally
written to the consol, to a file instead. I know I used to do this once
upon a time, but cannot remember what the switch is and cannot seem to
turn it up in any books I have. Can anyone be so kind ...
jc
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
J Charter wrote:
>
> would be most grateful for the answer...
>
> I am running compiles in DOS from the "dosprompt" or "consol" that W98
> provides and I want to stream the compiler errors, which are normally
> written to the consol, to a file instead. I know I used to do this once
> upon a time, but cannot remember what the switch is and cannot seem to
> turn it up in any books I have. Can anyone be so kind ...
> jc
Just use " > " at the end of your command line to pipe it to a .txt file
dir c: /s > c_drive.txt
If you want to append it to an existing file use the following -
dir d: /s >> c_drive.txt
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks Ken,
I remembered it being something like that
but sadly, it ain't happening. Maybe I am misunderstanding your answer. what
does the /s do?
Would the OS matter?
Ken wrote:
> J Charter wrote:
> >
> > would be most grateful for the answer...
> >
> > I am running compiles in DOS from the "dosprompt" or "consol" that W98
> > provides and I want to stream the compiler errors, which are normally
> > written to the consol, to a file instead. I know I used to do this once
> > upon a time, but cannot remember what the switch is and cannot seem to
> > turn it up in any books I have. Can anyone be so kind ...
> > jc
>
> Just use " > " at the end of your command line to pipe it to a .txt file
>
> dir c: /s > c_drive.txt
>
> If you want to append it to an existing file use the following -
>
> dir d: /s >> c_drive.txt
>
> --
> Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 03 Jan 2001 19:56:03 -0500, J Charter wrote:
>would be most grateful for the answer...
>
>I am running compiles in DOS from the "dosprompt" or "consol" that W98
>provides and I want to stream the compiler errors, which are normally
>written to the consol, to a file instead. I know I used to do this once
>upon a time, but cannot remember what the switch is and cannot seem to
>turn it up in any books I have. Can anyone be so kind ...
I don't think there's a way to do it in command.com. If you were using
NT's cmd.exe, you could just add "2>errors.txt" to the end of the command
line.
If you're using cygwin, you might try using the bash shell that comes with
it and using the same 2> notation to redirect stderr.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
J Charter wrote:
>
> Thanks Ken,
> I remembered it being something like that
> but sadly, it ain't happening. Maybe I am misunderstanding your answer. what
> does the /s do?
> Would the OS matter?
> > dir d: /s >> c_drive.txt
Like Ron said it may not work as expected. The "dir" command
I used was just an example usage of the " > " symbol and the
/s is used by the dir command to search subdirectories. Since
I don't know the command line operation you were using I
couldn't provide an exact example usage of it.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 03 Jan 2001 18:18:40 -0800, Ken wrote:
>
>
>J Charter wrote:
>>
>> Thanks Ken,
>> I remembered it being something like that
>> but sadly, it ain't happening. Maybe I am misunderstanding your answer. what
>> does the /s do?
>> Would the OS matter?
>
>> > dir d: /s >> c_drive.txt
>
>Like Ron said it may not work as expected. The "dir" command
>I used was just an example usage of the " > " symbol and the
>/s is used by the dir command to search subdirectories. Since
>I don't know the command line operation you were using I
>couldn't provide an exact example usage of it.
">>" redirects standard output (with append, but that's irrelevant), and most
compilers (C compilers, anyway) put errors on standard error. Command.com
doesn't have a facility for redirecting standard error, unfortunately.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ahhhh Thankyou for at least restoring some recognizable landmarks, I
remember now did have it working once using 2>
under NT. It is javac I am trying to run btw. I guess that means that javac
IS going to stderr. It is in the NT
environment at work that it matters most so thankyou much! Whether I can do
it at home under W98 matters less.
Ron Parker wrote:
> On Wed, 03 Jan 2001 19:56:03 -0500, J Charter wrote:
> >would be most grateful for the answer...
> >
> >I am running compiles in DOS from the "dosprompt" or "consol" that W98
> >provides and I want to stream the compiler errors, which are normally
> >written to the consol, to a file instead. I know I used to do this once
> >upon a time, but cannot remember what the switch is and cannot seem to
> >turn it up in any books I have. Can anyone be so kind ...
>
> I don't think there's a way to do it in command.com. If you were using
> NT's cmd.exe, you could just add "2>errors.txt" to the end of the command
> line.
>
> If you're using cygwin, you might try using the bash shell that comes with
> it and using the same 2> notation to redirect stderr.
>
> --
> Ron Parker http://www2.fwi.com/~parkerr/traces.html
> My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 03 Jan 2001 19:56:03 -0500, J Charter <jrc### [at] aolcom>
wrote:
>would be most grateful for the answer...
>
>I am running compiles in DOS from the "dosprompt" or "consol" that W98
>provides and I want to stream the compiler errors, which are normally
>written to the consol, to a file instead. I know I used to do this once
>upon a time, but cannot remember what the switch is and cannot seem to
>turn it up in any books I have. Can anyone be so kind ...
See "Directing Text Streams to Files" in the POV-Ray documentation.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |