Skip to main content

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"