Created
October 20, 2011 23:13
-
-
Save fideloper/1302682 to your computer and use it in GitHub Desktop.
Shell script to check log files in real time via ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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