Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created October 20, 2011 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fideloper/1302682 to your computer and use it in GitHub Desktop.
Save fideloper/1302682 to your computer and use it in GitHub Desktop.
Shell script to check log files in real time via ssh
#!/bin/bash
remoteuser=user_name
remotecomputer=some_ip_address
ssh -l "$remoteuser" "$remotecomputer" "tail -f path/to/log/files/log-`date +"%Y-%m-%d"`.php"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment