Skip to content

Instantly share code, notes, and snippets.

@rdeavila
Created February 10, 2014 18:34
Show Gist options
  • Save rdeavila/8921548 to your computer and use it in GitHub Desktop.
Save rdeavila/8921548 to your computer and use it in GitHub Desktop.
SSH: Como executar "tail -f" em uma máquina remota
#!/bin/bash
# Substitua "user" pelo nome de usuário
# "host" pelo nome ou endereço IP do servidor remoto
# "/var/log/messages" pelo arquivo que você quer exibir.
ssh user@host "tail -f /var/log/messages"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment