Mail Archives: djgpp/2001/06/16/10:30:08.2
Graaagh the Mighty wrote:
>
> Create something called centers.exe that writes "Hello, world.\n" to
> stdout.
>
> Now run each of the following at the prompt in sequence:
>
> redir -o foo.txt -eo centers
> redir -o centers.txt -eo centers
>
> The result?
>
> foo.txt:
> Hello, world.
>
> centers.txt:
> Bad command or filename.
Which version? See below:
C:\users\csrabak\Work>redir --version
Redir 2.1 Copyright (C) 1995 - 1999 DJ Delorie (dj AT delorie DOT com)
Distribute freely. There is NO WARRANTY.
This program is protected by the GNU General Public License.
C:\users\csrabak\Work>gcc -o centers.exe centers.c
C:\users\csrabak\Work>centers
Hello, world.
C:\users\csrabak\Work>redir -o foo.txt -eo centers
C:\users\csrabak\Work>cat foo.txt
Hello, world.
C:\users\csrabak\Work>redir -o centers.txt -eo centers
C:\users\csrabak\Work>cat centers.txt
Hello, world.
HTH
Cesar
>
> --
> Bill Gates: "No computer will ever need more than 640K of RAM." -- 1980
> "There's nobody getting rich writing software that I know of." -- 1980
> "This antitrust thing will blow over." -- 1998
> Combine neo, an underscore, and one thousand sixty-one to make my hotmail addy.
- Raw text -