How about something like:
ssh server.example.com \ cat_partial.pl /var/log/maillog 62548 \ | ./maillog_parse.pl
You could write a small perl script (cat_partial.pl) that will execute on the server, doing your seeks and rotation checks based on command line arguments. (The example above would seek to 62548.)
In reply to Re: SSH and checking log files
by ikegami
in thread SSH and checking log files
by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |