NAME
XAS::Lib::WS::Exec - A class to execute commands over WS-Manage
SYNOPSIS
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();
DESCRIPTION
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.
SEE ALSO
AUTHOR
Kevin L. Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
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.