This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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
     
    I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
     
    subject: Windows and Linux
     
    jQuery in Action, 3rd edition