Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Windows and Linux
     
    Similar Threads
    Tomcat 6.0.14 crash on RedHat linux 5.2 with java 1.6
    Path/enviromental var
    Config window loading very slow
    Tomcat 5.0 console monitor
    Tomcat 5 in Linux