From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Peculiar behavior of ssh -n in eshell mode Date: Tue, 19 Oct 2010 17:25:28 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <877hhe4s2v.fsf@rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291885549 6677 80.91.229.12 (9 Dec 2010 09:05:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 09:05:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 10:05:45 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQcRa-0002C4-Rc for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 10:05:43 +0100 Original-Received: from localhost ([127.0.0.1]:34382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQcRV-0000ns-Ef for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 04:05:38 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:mEBXPXhtWGLEIVMpiJyQtVAmVcU= Original-Lines: 48 Original-NNTP-Posting-Host: 6c9ff5d4.news.astraweb.com Original-X-Trace: DXC=T:6kl4a\Jn7B; RYi]PcMG9L?0kYOcDh@:W\:Hm@YlDb:>h5BA List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76900 Archived-At: elgen writes: > Dear all, > > I am reporting the following peculiar behavior. Have one file called > > run.sh > ====================================== > #!/bin/bash > HOST_NAME=windu > > ssh -n windu "bash ./windu_mr_mistf.sh" & > ===================================== > > > Have another file on the remote machine. It is called > > windu_mr_mistf.sh > ================================ > echo "show me the money" > ~/output.txt > ================================ > > > If I run the command "./run.sh" inside a terminal on the local host, the > output.txt is generated. This is expected. > > If I run the command inside the eshell mode inside emacs, I would not receive > the output.txt. Have any experienced this behavior inside emacs? > > I am using GNU Emacs 23.1.1 on Ubuntu v10.0.4. > > Thank you for sharing any thought. > > Unless it has changed, eshell does not play well with redirection of streams. This is one reason I don't use eshell except for simple interactive use. I found this out when trying to run a script that did redirection inside it and was geting inconsistent results when run inside eshell. >From memory, this is documented in the eshell manual. Tim -- tcross (at) rapttech dot com dot au