- POE METHODS
App::HistHub - Sync shell history between multiple PC.
use App::HistHub; my $hh = App::HistHub->new( hist_file => 'path to your history file', api_endpoint => 'http://localhost:3000/', ); $hh->run;
App::HistHub is an application that enables you to sync shell history between multiple computers.
This application consists of two modules: client module (histhubd.pl) and server module (histhub_server.pl).
You need one histhub server. To bootup the server, type following command:
This server receive updating history data from one client, and broadcast to others.
You also need one client daemon in each computer that you want to share history. To boot client, type following command:
histhubd --histfile=/path/to/your_history_file --server=http://your_server_address
This client send updated history to server, and receive new history from other clients.
my $hh = App::HistHub->new( %options );
Create HistHub object.
Available obtions are:
History file path to watch update
Update API URL.
Create POE session and return session object.
Spawn and start POE::Kernel
$hh->uri_for( $path )
Build api url
$hh->append_history( $session, $api_response );
Update history file
Daisuke Murase <email@example.com>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.