AOLserver-CtrlPort

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    AOLserver::CtrlPort - Execute Commands on AOLserver's Control Port

SYNOPSIS
        use AOLserver::CtrlPort;

        my $conn = AOLserver::CtrlPort->new(
            Host     => 'myhost',
            Port     => 3456,
            User     => 'username',
            Password => 'password',
        );

        my $out = $conn->send_cmds(<<EOT);
            info tclversion
        EOT

        print $out, "\n";

DESCRIPTION
    "AOLserver::CtrlPort" uses "Net::Telnet" to connect to a running

README  view on Meta::CPAN


    It is useful for creating test suites for AOLserver applications which
    can be controlled via the control port.

    To configure AOLserver's control port, use settings similar to the
    following ones:

        ns_section "ns/server/${servername}/module/nscp"
            ns_param address myhostname
            ns_param port 3334
            ns_param echopassword 1
            ns_param cpcmdlogging 1

        ns_section "ns/server/${servername}/module/nscp/users"
            ns_param user "username:3G5/H31peci.o:"
                               # That's "username:password"

        ns_section "ns/server/${servername}/modules"
            ns_param nscp ${bindir}/nscp.so

    This lets AOLserver enable the control port on server "myhostname" on
    port 3334. Authentication is on, the username is "username" and the
    password is "password" (hashed to "3G5/H31peci.o" with a program like
    "htpasswd").

  METHODS
    AOLserver::CtrlPort->new(...)
        Creates a new control port client object. The following options are
        available to the constructor:

        Port
            The port AOLserver is listening to for control port commands.

lib/AOLserver/CtrlPort.pm  view on Meta::CPAN

AOLserver::CtrlPort - Execute Commands on AOLserver's Control Port

=head1 SYNOPSIS

    use AOLserver::CtrlPort;

    my $conn = AOLserver::CtrlPort->new(
        Host     => 'myhost',
        Port     => 3456,
        User     => 'username',
        Password => 'password',
    );

    my $out = $conn->send_cmds(<<EOT);
        info tclversion
    EOT

    print $out, "\n";

=head1 DESCRIPTION

lib/AOLserver/CtrlPort.pm  view on Meta::CPAN


It is useful for creating test suites for AOLserver applications which
can be controlled via the control port. 

To configure AOLserver's control port, use settings similar to the following
ones:

    ns_section "ns/server/${servername}/module/nscp"
        ns_param address myhostname
        ns_param port 3334
        ns_param echopassword 1
        ns_param cpcmdlogging 1

    ns_section "ns/server/${servername}/module/nscp/users"
        ns_param user "username:3G5/H31peci.o:"
                           # That's "username:password"

    ns_section "ns/server/${servername}/modules"
        ns_param nscp ${bindir}/nscp.so

This lets AOLserver enable the control port on server C<myhostname> on port
3334. Authentication is on, the username is C<username> and the
password is C<password> (hashed to C<3G5/H31peci.o> with a program
like C<htpasswd>).

=head2 METHODS

=over 4

=item AOLserver::CtrlPort-E<gt>new(...)

Creates a new control port client object. The following options
are available to the constructor:



( run in 0.718 second using v1.01-cache-2.11-cpan-49f99fa48dc )