Uses of Class
org.metricshub.winrm.CommandRequest
Packages that use CommandRequest
-
Uses of CommandRequest in org.metricshub.winrm
Methods in org.metricshub.winrm that return CommandRequestModifier and TypeMethodDescriptionSet the charset used to decode the command output.Prepare a command execution.Register a callback receiving each chunk of standard error as it arrives, whileexecute()is still running.Register a callback receiving each chunk of standard output as it arrives, whileexecute()is still running — a middle ground between collecting everything and managing aRemoteProcess: tail the output live, but keep the blocking terminal and its completeCommandResult.CommandRequest.stdin()Declare that the command will be fed standard input interactively, throughRemoteProcess.stdin(), without pre-supplying it: the remote stdin switches to pipe semantics (WINRS_CONSOLEMODE_STDIN=FALSE), so closing the writer actually delivers EOF — a console-mode stdin never reaches EOF for tools likesortorfindstr.CommandRequest.stdin(InputStream stream) Feed the given stream to the command's standard input, reading it to its end.Feed the given text to the command's standard input.Feed the content of the given local file to the command's standard input — the equivalent of a local< fileredirection.CommandRequest.stdinCharset(Charset charset) Set the charset used to encode the command's standard input, when it differs from the output charset.Set the timeout of this command.Copy local files to the remote host (through the WinRM connection itself) before running the command.CommandRequest.workingDirectory(String workingDirectory) Set the working directory of the remote process.