Function: tramp-smb-send-command
tramp-smb-send-command is a byte-compiled function defined in
tramp-smb.el.gz.
Signature
(tramp-smb-send-command VEC COMMAND &optional NOOUTPUT)
Documentation
Send the COMMAND to connection VEC.
Returns nil if there has been an error message from smbclient. The function waits for output unless NOOUTPUT is set.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-smb.el.gz
;; Connection functions.
(defun tramp-smb-send-command (vec command &optional nooutput)
"Send the COMMAND to connection VEC.
Returns nil if there has been an error message from smbclient. The
function waits for output unless NOOUTPUT is set."
(tramp-smb-maybe-open-connection vec)
(tramp-message vec 6 "%s" command)
(tramp-send-string vec command)
(unless nooutput
(prog1
(tramp-smb-wait-for-output vec)
(with-current-buffer (tramp-get-connection-buffer vec)
(save-excursion
(goto-char (point-min))
(delete-matching-lines (rx bol (literal command) eol)))))))