CPANPLUS::Daemon -- Remote CPANPLUS access
### from the command line cpanpd -p secret # using defaults cpanpd -P 666 -u my_user -p secret # options provided, recommended ### using the API use CPANPLUS::Daemon; $daemon = CPANPLUS::Daemon->new( username => 'my_user', password => 'secret', port => 666, ); $daemon->run; ### (dis)connecting to the daemon, from the default shell CPAN Terminal> /connect --user=my_user --pass=secret localhost 666 ... CPAN Terminal> /disconnect
CPANPLUS::Daemon let's you run a daemon that listens on a specified port and can act as a remote backend to your CPANPLUS::Shell::Default.
CPANPLUS::Daemon
You can use the CPANPLUS::Shell::Default shell to connect to the daemon. Note that both sides (ie, both the server and the client) ideally should run the same version of the CPANPLUS::Shell::Default, to ensure maximum compatibillity
See the CPANPLUS::Shell::Default documentation on how to connect to a remote daemon.
Creates a new CPANPLUS::Daemon object, based on the following paremeters:
The password needed to connect to this server instance
The user needed to connect to this server instance. Defaults to cpanpd.
cpanpd
The port number this server instance will listen on. Defaults to 1337.
1337
This actually makes the daemon active. Note that from here on, you lose control of the program, and it is handed to the daemon. You can now only exit the program via a SIGINT or another way that terminates the process.
SIGINT
You can override where the daemon sends its output by supplying the an alternate filehandle via the stdout and stderr parameter
stdout
stderr
This module by Jos Boumans <kane@cpan.org>.
This module is copyright (c) 2005 Jos Boumans <kane@cpan.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
To install CPANPLUS::Daemon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPANPLUS::Daemon
CPAN shell
perl -MCPAN -e shell install CPANPLUS::Daemon
For more information on module installation, please visit the detailed CPAN module installation guide.