File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes how to copy from MS DOS screen? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to copy from MS DOS screen?" Watch "how to copy from MS DOS screen?" New topic
Author

how to copy from MS DOS screen?

kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
Dear all,
Please help me with MS DOS.when the errors are so many that they cannot fit in one screen of MS DOS,we can only see the last set of errors. Also we cannot copy-paste from a DOS screen. Please tell me how to copy-paste the complete trace of errors on to a text file so that I can paste it here for advice.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12778
    
    5
1. "fit on one screen" problem - right click on the upper left corner of a MSDOS console window, there should be selections for properties. You want to increase the "Screen Buffer Size" - I have mine set at 300 lines.
2. "copy from screen" problem - again right click on the upper left corner - pick the edit menu item, then the mark option - you can then select a point on the window with the mouse and drag to highlight an area. Hit enter and you have copied that area to the clipboard. You should also see the select all option and paste options - very useful.
Bill
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
my dos has a maximum screen buffer size of 50 lines.i still cannot get the complete trace of errors ,only the last screen.scrolling does not get enabled in dos window,what to do?
i can copy-paste now.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12778
    
    5
Hmm - I thought all Windows versions let you increase the line memory... oh well, in that case you need to run startup with redirection of output to a file, like this:

That will enable you to catch all the exceptions.
Bill
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
test.txt is created in the bin folder but is empty. i have tried many times.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

that's because the first batch file launches another batch file, which will not be output to your file.

There are lots and lots of posts here relating to the problem of starting Tomcat on windows, and the 2nd screen 'flashing'.
Sachin Joshi
Ranch Hand

Joined: Mar 23, 2004
Posts: 43
Originally posted by kriti sharma:
test.txt is created in the bin folder but is empty. i have tried many times.

Hi kriti sharma,
Are you getting a new window after tomcat is started ? then try this,
1. Open "startup.bat" file in bin folder.
2. Search for this line.
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
3. Now, replace "start" in this command line with "run".
4. Add "> runtimeOutput.txt" at the end of this command line. So, now it should look like this.
call "%EXECUTABLE%" run %CMD_LINE_ARGS% > runtimeOutput.txt
4. Save the file and start tomcat again.
You will get all the output on MS-Dos screen in a text file in bin folder of tomcat installation.
Cheers
Sachin
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
sachin, nothing is written in runtimeOutput.txt...what to do?
Sachin Joshi
Ranch Hand

Joined: Mar 23, 2004
Posts: 43
Originally posted by kriti sharma:
sachin, nothing is written in runtimeOutput.txt...what to do?

oh..this is amazing...
paste the command line here from your startup.bat...
sachin
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12778
    
    5
Its a long-shot, but try this - there is a line at the start of startup.bat
@echo off
insert REM at the start of that line to read
REM @echo off
Now all the lines in startup.bat should be echoed to the file.
(It occurs to me that the file could be empty because the process is still running. If the output is small, it won't be flushed to the file until the batch process ends.)
Bill
[ April 15, 2004: Message edited by: William Brogden ]
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
to William : i added REM,but there is no output at the runtimeOutput.txt
to Sachya : call "%EXECUTABLE%" run %CMD_LINE_ARGS% > runtimeOutput.txt
I AM TIRED!!!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12778
    
    5
I don't think you want
call "%EXECUTABLE%" run %CMD_LINE_ARGS% > runtimeOutput.txt
inside the startup.bat file, instead execute the startup.bat with redirection
C:\Servers\Tomcat-4.1.30\bin>startup > runtimeOutput.txt
Bill
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
to William: i did that as well Sir, nothing is written to the file.
I am really sorry to take so much of you all's time.
sudeep philip
Greenhorn

Joined: Nov 28, 2002
Posts: 5
You can start the tomcat from the command prompt at the bin directory like
catalina run>>log.txt
all the console messages will be redirected to that file
N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
Hi...
I think you are now moving away from your original problem. It is better you download the latest versions of tomcat like Tomcat 5.0.19 and Java1.4.2_04. Moreover, with newer versions of both of these software, the developers are depricating a lot of things and adding newer helpful things. And this deprication is more significant in case of Tomcat, because earlier there were 2 separate groups within Apache working for Tomcat, and now Apache administration has merged both the groups. You can find quite significant difference between Tomcat 4 and Tomcat 5 versions, particularly the way the server provides services, and handles load balancing etc. Hence, it is better to adopt newer versions rather than going with the older versions.


Regards<br />--<br />Niranjan Nanda<br />Consultant<br />Capgemini Consulting India <br />Mumbai<br />Phone: 9324951476
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
To N Nanda:i am trying to install tomcat 5.0.19 only.i have jdk1.3 and the running.txt file of tomcat says that it will work for jdk1.3 or greater.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to copy from MS DOS screen?