Using tail.bat, like the one shown below, I can snap up log files on remote servers without having to manually log in. I don’t call this batch file manually, but with a modification or two, doing so could still simplify your tailing.
@echo off set rsip=%1 set username=%2 set password=%3 set path=%4 REM TAIL A LOG plink -t -pw %password% %username%@%rsip% "sudo tail -f /%path%/tomcat/logs/catalina.out; $SHELL -i"tail.bat

