perl-Net-Chat-Daemon - run a daemon that is controlled via instant messaging

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Net-Chat-Daemon
Package version 0.3
Package release alt1
Package architecture noarch
Package type rpm
Installed size 29.54 KB
Download size 29.54 KB
Official Mirror
package My::Server;
use base 'Net::Chat::Daemon';
sub handleHello {
return "hello to you too";
sub handleSave {
my ($filename, $file) = @_;
return "denied" unless $filename =~ /^[.\w]+$/;
open(my $fh, ">/var/repository/$filename") or return "failed: $!";
print $fh $file;
close $fh or return "failed: $!";
return "ok";
sub someMethod {
my ($self, @args) = @_;
sub new {
my ($class, $user, %options) = @_;
return $class->SUPER::new(%options,
commands => { 'callMethod' => 'someMethod',
'save' => \&handleSave });
package main;
my $server = My::Server->new('');
My::Server->run('', retry => 300);
When you run this, you should be able to send a message to saying "hello" and get a response back, or
"callMethod a b c" to call the method with the given arguments. To use
the "save" command, you'll need to use a command-line client capable
of sending attachments in the format expected by this server (it
currently does not use any standard file-sending formats). The
`jabber' command packaged with this module can do this via the `-a'
command-line option.
A note on the implementation: when I first wrote this, it was really
only intended to be used with Jabber. The code hasn't been fully
restructured to remove this assumption.


Package Version Architecture Repository
perl-Net-Chat-Daemon - - -


Name Value
/usr/share/perl5 -
perl(Net/ >= 1.300
perl(Net/Jabber/ -
perl(Time/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Net/Chat/ = 0.300
perl(Net/Chat/ = 0.100
perl-Net-Chat-Daemon = 0.3-alt1


Type URL
Binary Package perl-Net-Chat-Daemon-0.3-alt1.noarch.rpm
Source Package perl-Net-Chat-Daemon-0.3-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Net-Chat-Daemon rpm package:
    # sudo apt-get install perl-Net-Chat-Daemon



See Also

Package Description
perl-Net-Chat-Daemon-scripts-0.3-alt1.noarch.rpm Net-Chat-Daemon scripts
perl-Net-Chaton-API-0.02-alt1.noarch.rpm WebAPI for Chaton
perl-Net-ChooseFName-0.01-alt1.noarch.rpm perl module Net-ChooseFName
perl-Net-Cisco-ACS-0.04-alt1.noarch.rpm Access Cisco ACS functionality through REST API
perl-Net-Cisco-AccessList-Extended-1.01-alt1.noarch.rpm Generate Cisco extended access-lists
perl-Net-Cisco-ConfigGenerator-0.01-alt1.noarch.rpm The great new Net::Cisco::ConfigGenerator!
perl-Net-Cisco-FMC-v1-0.003001-alt1.noarch.rpm Cisco Firepower Management Center (FMC) API version 1 client library
perl-Net-Cisco-ISE-0.06-alt1.noarch.rpm Access Cisco ISE functionality through REST API
perl-Net-Cisco-ObjectGroup-1.01-alt1.noarch.rpm Generate Cisco ACL object groups
perl-Net-Cisco-QualityAssurance-0.01-alt1.noarch.rpm Net::Cisco::QualityAssurance!
perl-Net-Citadel-0.25-alt1.noarch.rpm protocol coverage
perl-Net-Clacks-5.1-alt1.noarch.rpm Fast client/server interprocess messaging and memcached replacement
perl-Net-Clickatell-0.50-alt1.noarch.rpm perl module Net-Clickatell
perl-Net-ClientServer-0.0007-alt1.noarch.rpm A client/server platform for IPC on localhost
perl-Net-CloudStack-0.01005-alt1.noarch.rpm Bindings for the CloudStack API