Google Translate

Valutazione attuale: 0 / 5

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

Tail is a famous linux command to read latest lines of a text file, usually used to read live a log while a program is writing into the file. If you are a windows user you would like send remote commands ssh to a linux box, for example to read a log file without open an interactive linux session using for example Putty.

Well ! the program plink.exe can execute remote command on linux box and capture the output.

So I created my batch file with all needed parameters to run Tail and read a specified log file.

Here an example

plink -ssh myhost.mydomain.com -l root -pw mypassword "tail -f /var/log/system.log"

 Of course plink can be used to other tons of commands. I think you have enough fantasy to use it in the best way you want ;-)

 

- have fun -