From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Issue with remote async processes. Date: Sun, 27 Mar 2022 22:46:19 +0200 Message-ID: <20220327204619.xs7rz54ny4us3j5t@Ergus> References: <20220324222414.6k5cj2ovxfnpozwr.ref@Ergus> <20220324222414.6k5cj2ovxfnpozwr@Ergus> <87y20yif6s.fsf@gmx.de> <20220326194813.r33vff2a3z7zcjnd@Ergus> <87fsn3hnaq.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 27 22:47:57 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYZnp-0005Iw-RD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Mar 2022 22:47:57 +0200 Original-Received: from localhost ([::1]:44802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYZno-0007rZ-7n for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Mar 2022 16:47:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYZmX-0007qv-LE for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 16:46:38 -0400 Original-Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]:38143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYZmR-0005vW-1e for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 16:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1648413987; bh=MQT4ciM1XBbDRmrm+OyMzQYGV/MQd8IoJ1MTN6o4NwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=D2898yI1d8xO/8lvQ3SjFCN/F2Mvk1QXwWZL2BqjKedEYmr+UpIfhbpNQBvJNec+phNOyfs6J9T2P/qUKkYTHGp/6vHEFXu6c0BW/p7TEBjYMT5c/+Q5/g/UoLe5ef4wehGIrECLP73XTvYMjSddiHt8ESxdIOj9kiOy32gwyzID/s7pgJfNS+dCKtToAYE/U60LUrzD6L0T875QsmD5sXD3WtKIbksFMVcVs2QdbYeFKNTGSFYwI5K70n1aH14eGya8MKYuFs7B1ha8lADSqtDQ+9IcfrAD8GARi+2f5cxzEA8TiUFLHxxXqmS8d428yFtjjAEbPbZuCGFsr5Zg1g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648413987; bh=QuSJZV39Ym2CL81JgGldIr22a3cccDOYYKBh8A0Ue/G=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=VPZd3awDyKih48S5AvuppADEPAfSmrCCGkvZfnUBMrGdH1+Vd373nD6ARgC+qF5EaI1V1G+IhZUBNZaH9jwWYsgJpBruwzSM3lddNEZVHP0MulIEqxmPhw1DrxgcksoWwMR8QBIlcvrU7TMgDHDw5YBNKWachb+zuCLDcrCU+ePTi4XnDHYvOVObZhN/KikJzuvHeua1zQfI/CEXaG6cQT8XjZea4aUMxkioaJbCNMWNyepfJbzyowt+Sk+L1vVxm43VHy45Bfx8QJXSFaJd2Ql/vrnLdGMZT/LnRYKkn+DNfz3kqR0z1XscJuKDujl2w9z/t/QqHdozaM7OrQMJEg== X-YMail-OSG: CDd9etEVM1lHoJ8EESR6E2i0ttBMYVUEOlfU7BscjVtES3oCaVxU2GLZX_sfrIA B7NsRxDaXDcdgP4wk7KOQIIW52zFhtBXcD8Rv69gILnYsrk5dlfr2ihWj4Fen2wGAIgJpUG2wzci hc3YQk9l7IgeEJseDQUFcaJyqgzJ.z9k1NaBfUKNZrssPmTjI_KnHYil2pGDmK.45CR5NRCml1_h 3yMFu0kKL.l4usTRuyWGMCKDAtYaQNsU5lZU.8NDek81GCnDvKTROLm8U77WvWCghWYOJVK_TV5_ nhXk8PG4q2Au1pFE96ZJT1MkSHQDW2nGJ6pBsq7kRRewqFrjrQOk_7iCDyicIIlD2ZFdDHuP2atn lq70cfCRBSzRvNe.9kWv4y516QGyow8nNvuJWWGNa.elHFS9dttzHDfGpVxpQtPc0xRiamt1lujA 4k2lZltFnArnIk3yCh.C3Xnug4w_bL9tsNxw6a1RqZXanakofM4XqYtMlHcl_ibC5PtqQfbSSt3c cvNTCyzV6ckErDh2oT1xGLC965Da7qTqcqKBVI.fSRtAG.30Ma_GN2eOpxeuQh9w.SATrAw.uczq .xuT4CO3wJUXAiPxpTjO713i3mkutFQVfEKmR4iL5cKhPU7RGBeU9XzYA8pmZ3jXaGceYM0V5LcV L3jORvDWN9FNK5kFkbh4TxJwwlXgeky6m2b52nZPE8DCuGFk3v4W467z4Si.zA_tjF5UhC30JtS1 kcKSwAVKDbB7jbxBXSbSBg.OrrPxyS3NvXngnjBzIEaJI5N5n5_EK_Dkkb0QUWC66XZClwdIkNIx e6T1AASwrZttzWNIFMTDy8ifQclzyikz2SViENU7nt X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Sun, 27 Mar 2022 20:46:27 +0000 Original-Received: by kubenode504.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4f6139fbfbf23dcc6a8356d26ec1be96; Sun, 27 Mar 2022 20:46:22 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87fsn3hnaq.fsf@gmx.de> X-Mailer: WebService/1.1.19987 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.124; envelope-from=spacibba@aol.com; helo=sonic313-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136793 Archived-At: On Sun, Mar 27, 2022 at 09:22:53AM +0200, Michael Albinus wrote: >Ergus writes: > >Hi, > >> Sorry to bother... I have another question. When we use process-file and >> start-file-process with tramp, how can we get the error output in a >> buffer? > >The argument BUFFER can be a list. The car is the output (string or >buffer), the cdr is the stderr (just a string, a filename). > >--8<---------------cut here---------------start------------->8--- >(let ((default-directory "/ssh::") > (output (generate-new-buffer "*Output*")) > (stderr "/ssh::/tmp/xxx")) > (process-file "echo" nil (list output stderr) nil "Hallo") > (process-file "echa" nil (list output stderr) nil "Holla") > (find-file stderr)) >--8<---------------cut here---------------end--------------->8--- > >In start-file-process, it is similar. The difference is, that stderr can >be either a string (filename) or a buffer. > >--8<---------------cut here---------------start------------->8--- >(let ((default-directory "/ssh::") > (output (generate-new-buffer "*Output*")) > (stderr (generate-new-buffer "*Stderr*"))) > (start-file-process "test1" (list output stderr) "echo" "Hallo") > (start-file-process "test2" (list output stderr) "echa" "Holla")) >--8<---------------cut here---------------end--------------->8--- > >Best regards, Michael. > Very thanks Michael... This is useful. What's reason process-file doesn't support to use a buffer for stderr? Performance? Technical?