App-PersistentSSH
view release on metacpan or search on metacpan
lib/App/PersistentSSH.pm view on Meta::CPAN
App::PersistentSSH - Kick an F<ssh> control master around on OSX using
F<scutil>
=head1 SYNOPSIS
% persisshtent --host your.host.com
=head1 DESCRIPTION
This POE component will keep an SSH control master alive, depending on network status.
It uses the OSX command line tool F<scutil> to get notification on changes to
the C<State:/Network/Global/IPv4> configuration key. Whenever this key is changed
C<scutil -r> will be used to check if the specified host is directly reachable
(without creating a connection using e.g. PPP), and if so spawn F<ssh>.
If the host is not reachable, F<ssh> is stopped.
=head1 CONFIGURATION
( run in 1.885 second using v1.01-cache-2.11-cpan-df04353d9ac )