[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with remote async processes.

From: Ergus
Subject: Issue with remote async processes.
Date: Thu, 24 Mar 2022 23:24:14 +0100


I have this simple code:

(defun my/async-sentinel (process _msg)
  "Sentinel function for an asynchronous counsel PROCESS."
  (when (eq (process-status process) 'exit)
    (with-current-buffer " *string-output*"
      (while (accept-process-output process))
      (message "%s" (buffer-substring-no-properties (point-min) (point-max))))))

(let ((my/output (generate-new-buffer " *string-output*" t))
   (setq process (start-file-process "myls" my/output "ls"))
   (set-process-sentinel process #'my/async-sentinel)))

This works in local processes without issues, but on remote I don't get
any output.  Probably it is an error in the code, but I don't understand
what's missing. And something similar to this used to work before.

Any help please?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]