This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

Tail remote logs

Paul Westbrook | 25 January, 2008 21:51

In this post, I mentioned that I was looking for a way to tail log files on a remote computer. Stig commented with a suggestion.  You can specify the sudo and tail command to ssh

ssh user@hostname 'sudo tail -f /var/log/messages'

I am using this solution, but there are two problems:

  1. Your password will appear in the clear in the terminal window when entering it for the sudo command
  2. sudo has to be configured to work on a non-tty terminal, which could be a security hole.

Technorati tags: , , ,

Powered by LifeType
Design by Book of Styles