wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Windows and Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Windows and Linux" Watch "Windows and Linux" New topic
Author

Windows and Linux

Nitti Lin
Ranch Hand

Joined: May 15, 2003
Posts: 39
We have Tomcat running on Linux, that machine has no monitor. I need to see the Tomcat console window on that box from my machine to the error message printed on that machine. I'm using Windows 2000.

Does anyone know how to see Tomcat console window on Linux box from my Windows 2000 machine?

Please advise, thanks.

Nitti


SCJP, SCWCD, SCJD, (SCEA, MCSD.net)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

  • Use either telnet or ssh to log into the Linux box.
  • cd to the tomcat/logs directory.
  • Type: tail -f catalina.out


  • Where the 'head' command shows you the first n lines in a file, the tail program shows the last n lines.
    The '-f' switch (follow) tells tail to continue printing new lines as they are added to the file.
    [ February 13, 2005: Message edited by: Ben Souther ]

    Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
     
    Don't get me started about those stupid light bulbs.
     
    subject: Windows and Linux