-
-
05 Mar 2022 21:52:05 UTC
- Distribution: Net-OpenSSH
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (7)
- Testers (709 / 13 / 0)
- Kwalitee
Bus factor: 1- 31.15% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (74.64KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::OpenSSH::ShellQuoter::MSCmd - Quoter for Windows cmd.exe
DESCRIPTION
This quoter is intended for interaction with SSH servers running on Windows which invoke the requested commands through the
cmd.exe
shell.Because of
cmd.exe
not doing wildcard expansion (on Windows this task is left to the final command), glob quoting just quotes everything.Some Windows servers use
Win32::CreateProcess
to run thecmd.exe
shell which runs the requested command. In that case, both theMSCmd
andMSWin
quoters have to be chained (and BTW, order matters):$ssh = Net::OpenSSH->new(..., remote_shell => 'MSCmd,MSWin');
Actually,
cmd.exe
may require not quoting at all when the requested command is a builtin (for instance,echo
).COPYRIGHT AND LICENSE
Copyright (C) 2008-2014 by Salvador Fandiño (sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Net::OpenSSH, copy and paste the appropriate command in to your terminal.
cpanm Net::OpenSSH
perl -MCPAN -e shell install Net::OpenSSH
For more information on module installation, please visit the detailed CPAN module installation guide.