| POE-Component-RemoteTail documentation | Contained in the POE-Component-RemoteTail distribution. |
POE::Component::RemoteTail::Job - Job class.
my $job = $tailer->job(
host => '127.0.0.1',
path => '/home/httpd/logs/access_log',
user => 'admin',
ssh_options => '-i ~/.ssh/identity',
add_command => '| grep hoge',
);
# $job would be transformed as below.
# ssh -i ~/.ssh/identity -A 127.0.0.1 "tail -f /home/httpd/access_log | grep hoge"
Takeshi Miki <miki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| POE-Component-RemoteTail documentation | Contained in the POE-Component-RemoteTail distribution. |
package POE::Component::RemoteTail::Job; use strict; use warnings; sub new { my $class = shift; my $self = bless {@_}, $class; } 1; __END__