This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dos output  RSS feed

 
jesse jay
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the jdk thru a dos window but I am having the following trouble.....when I have output, it is much larger then the output window, even if i make the window size huge and the text tiny, is there anything in dos that is similar to the cat command on unix so I could capture the i/o to a file and then review it.
any help appreciated
thanks in advance
jjh
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can redirect the output of your program to any outputstream that you wish.

Hope this helps
 
jesse jay
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im looking for a utility for dos, I know hoe to write to a file in java but i need a less language specfic solution.
thanks though,
jjh
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, DOS like most operating systems allows you to 'pipe' the output of programs(as long as the program doesn't take additional control) The charater that is used for a redirect is >
java saveScreenOutput > output.txt
You can also 'pipe' input using the <.
Hope this helps
 
jesse jay
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved,
thanks a lot
jjh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!