1Net::OpenSSH::ShellQuotUesre:r:MCSoCnmtdr(i3b)uted PerlNDeotc:u:mOepnetnaStSiHo:n:ShellQuoter::MSCmd(3)
2
3
4
6 Net::OpenSSH::ShellQuoter::MSCmd - Quoter for Windows cmd.exe
7
9 This quoter is intended for interaction with SSH servers running on
10 Windows which invoke the requested commands through the "cmd.exe"
11 shell.
12
13 Because of "cmd.exe" not doing wildcard expansion (on Windows this task
14 is left to the final command), glob quoting just quotes everything.
15
16 Some Windows servers use "Win32::CreateProcess" to run the "cmd.exe"
17 shell which runs the requested command. In that case, both the "MSCmd"
18 and "MSWin" quoters have to be chained (and BTW, order matters):
19
20 $ssh = Net::OpenSSH->new(...,
21 remote_shell => 'MSCmd,MSWin');
22
23 Actually, "cmd.exe" may require not quoting at all when the requested
24 command is a builtin (for instance, "echo").
25
27 Copyright (C) 2008-2014 by Salvador FandiƱo (sfandino@yahoo.com)
28
29 This library is free software; you can redistribute it and/or modify it
30 under the same terms as Perl itself, either Perl version 5.10.0 or, at
31 your option, any later version of Perl 5 you may have available.
32
33
34
35perl v5.36.0 2023-01-20Net::OpenSSH::ShellQuoter::MSCmd(3)