POV-Ray : Newsgroups : povray.newusers : not really a raytraing question but... Server Time
28 Nov 2024 11:48:27 EST (-0500)
  not really a raytraing question but... (Message 1 to 8 of 8)  
From: J Charter
Subject: not really a raytraing question but...
Date: 3 Jan 2001 19:51:12
Message: <3A53CA23.50C40EE9@aol.com>
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

From: Ken
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 20:07:53
Message: <3A53CD07.B6260670@pacbell.net>
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

From: J Charter
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 20:39:04
Message: <3A53D558.F24E6A92@aol.com>
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

From: Ron Parker
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 20:51:21
Message: <slrn957lot.biv.ron.parker@fwi.com>
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

From: Ken
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 21:18:10
Message: <3A53DD80.A916CE00@pacbell.net>
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

From: Ron Parker
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 21:30:34
Message: <slrn957o2d.bj7.ron.parker@fwi.com>
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

From: J Charter
Subject: Re: not really a raytraing question but...
Date: 3 Jan 2001 21:50:28
Message: <3A53E617.52D60E2@aol.com>
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

From: Peter Popov
Subject: Re: not really a raytraing question but...
Date: 4 Jan 2001 02:44:31
Message: <3aa85t0div5sj65kgv8t3gfmmqtro5p39c@4ax.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.