Execute the supplied program on a remote host. A two-element list is returned. The first element is the exit status of the program or -1 if execution failed. The second element is any output produced by the program. This may be an empty string if output from the program was redirected.
remote_exec hostname program ?options? ?input? ?output? ?timeout?
hostnameName of the host to execute the command on.
programCommand to execute.
optionsArguments to pass to the program.
inputInput filename to feed to standard input of the command.
outputOutput filename where the output from the command should be written.
timeoutTimeout value in seconds.
All of the optional positional arguments accept an empty string as a neutral value.