I'm trying monitor a log file on a remote machine by using Net::SSH::Perl and executing the tail -f command on the remote machine. I'm not sure how to set that up so that I can do something useful on the local machine each time a line is added to the log file on the remote machine. (I can't install anything on the remote machine.)
Here is the line that I'd like to constantly monitor and capture the output each time something changes.
$ssh->cmd('tail -f /var/log/2001-log')
Thanks