unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Issue with remote async processes.
Date: Thu, 24 Mar 2022 23:24:14 +0100	[thread overview]
Message-ID: <20220324222414.6k5cj2ovxfnpozwr@Ergus> (raw)
In-Reply-To: 20220324222414.6k5cj2ovxfnpozwr.ref@Ergus

Hi:

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))
       process)
   (with-connection-local-variables
    (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	other threads:[~2022-03-24 22:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220324222414.6k5cj2ovxfnpozwr.ref@Ergus>
2022-03-24 22:24 ` Ergus [this message]
2022-03-25  8:55   ` Issue with remote async processes Michael Albinus
2022-03-26 19:48     ` Ergus
2022-03-27  7:22       ` Michael Albinus
2022-03-27 20:46         ` Ergus
2022-03-28  9:14           ` Michael Albinus
2022-03-28 16:47             ` Ergus
2022-03-29  8:55               ` Michael Albinus
2022-03-29 11:46                 ` Ergus
2022-03-29 17:45                   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220324222414.6k5cj2ovxfnpozwr@Ergus \
    --to=spacibba@aol.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).