all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Peculiar behavior of ssh -n in eshell mode
Date: Tue, 19 Oct 2010 17:25:28 +1100	[thread overview]
Message-ID: <877hhe4s2v.fsf@rapttech.com.au> (raw)
In-Reply-To: i9ivld$p3c$1@news.eternal-september.org

elgen <sket16@no.spam.hotmail.com> 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


  reply	other threads:[~2010-10-19  6:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19  2:26 Peculiar behavior of ssh -n in eshell mode elgen
2010-10-19  6:25 ` Tim X [this message]
2010-10-20 14:04   ` elgen

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

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

  git send-email \
    --in-reply-to=877hhe4s2v.fsf@rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.