XAS::Lib::WS::Exec - A class to execute commands over WS-Manage
use XAS::Lib::WS::Exec; my $client = XAS::Lib::WS::Exec->new( -username => 'Administrator', -password => 'password', -url => 'http://localhost:5985/wsman', ); $client->connect(); my $output = $client->call('dir c:\\', sub { my $output = shift; ... }); $client->disconnect();
This class inherits from XAS::Lib::WS::RemoteShell and uses the same parameters. It also implements an interface similar to XAS::Lib::SSH::Client::Exec. This is to allow code to operate in a similar manner. Thus, the same code base can interact with SSH or WS-Manage.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2012-2016 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.