emacs-devel
[Top][All Lists]
Advanced

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

Re: Forwarding stdout/stderr of a child process in batch mode


From: Zhu Zihao
Subject: Re: Forwarding stdout/stderr of a child process in batch mode
Date: Sun, 06 Dec 2020 21:36:18 +0800
User-agent: mu4e 1.4.13; emacs 27.1

IMO, in batch mode, `message` writes to stderr, `princ` writes to
stdout. You can install a filter for childprocess, and run functions I
mentioned above to forward these outputs.


Paul Pogonyshev writes:

> Hi,
>
> I'm using Emacs in batch mode. I need to invoke a child process that
> is a longish operation (a few minutes). During this time, it writes to
> its stdout, so user will see that it is working and what exactly is
> being done. However, if I invoke it from Emacs (e.g. using
> `call-process') I see no way of forwarding this output to the "real"
> stdout. So, for a user this looks like the process (or batch Emacs on
> top of it) is hung.
>
> Am I missing a way to forward output?
>
> Paul


-- 
Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp

Zihao

Attachment: signature.asc
Description: PGP signature


reply via email to

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