Monday, June 15, 2015

linux - PuTTY - Display whole server output (screen command)


I am using PuTTY to administrate a Minecraft server on a remote Linux machine. I do not own the server but I have an SSH account.
The server has a console window which can be accessed with the screen command.
The problem is that the output is VERY long. And if I start the session with PuTTY I can only see a few lines. I noticed when I resize it (make it bigger) more lines are loaded and displayed. So I wondered if PuTTY is able to load the entire log or at least a few hundered more lines.
This is necessary because some things happen and if too much happened I can't see it if I log in some time later.


Notice:
I already have the alternate screen display style enabled but this does not load anything that happened above the top-most line on my screen!


Answer



You can adjust the amount of backscroll Putty has in the "Window" settings. As someone who has managed server like this in the past, downloading the log to see the history is much easier to do!


Alternatively, use tail -f server.log to get a live "feed" of your server log while not in a screen session.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...