From: George Jones <eludom@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Errors from remote sh scripts somewhat non-intuititve
Date: Fri, 28 Dec 2012 12:48:22 -0500 [thread overview]
Message-ID: <CAOhM7yUthtjSjavQROp-4zB=kAKt07v6KmNqwYQ6FwscBw98iw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 308 bytes --]
When a a remote sh script fails in babel, the feedback to the user
is "Setting current directory: no such file or directory, ..." even it what
happened is just a command not found. It would be more useful to
see the error output as happens with the local case.
repete-by attached.
Thanks,
---George Jones
[-- Attachment #1.2: Type: text/html, Size: 500 bytes --]
[-- Attachment #2: shErrors.org --]
[-- Type: application/octet-stream, Size: 1025 bytes --]
#+TITLE: Simple example to demonstrate feedback issues with bable remote execution failures of sh commands
#+AUTHOR: George Jons
#+DATE: Fri Dec 28 12:42:09 2012
* Local Execution Failure
#+name: localExecutionFailure
#+BEGIN_SRC sh :results output
xecho foo
#+END_SRC
#+RESULTS: localExecutionFailure
** Local Exection Failure Results
- Message: "Code block produced no output".
- "Org-babel Error Output" contains "bash: line 1: xecho: command not found"
- This error is understanable. The command did not exist. Just
need to fix it and everything works.
* Remote Execution Failure
#+name: remoteExecutionFailure
#+BEGIN_SRC sh :results output :dir /george@localhost#2222:
xecho foo
#+END_SRC
** Remote Execution Failure Results
- Message: "Setting current directory: no such file or directory, /george@localhost#2222/behavior/20121228/"
+ This is somewhat non-intuititve. The command failed to execute.
The directory does exist. Would be better to see the error
message.
next reply other threads:[~2012-12-28 17:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 17:48 George Jones [this message]
2012-12-29 10:44 ` Errors from remote sh scripts somewhat non-intuititve Bastien
2012-12-29 11:57 ` George Jones
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOhM7yUthtjSjavQROp-4zB=kAKt07v6KmNqwYQ6FwscBw98iw@mail.gmail.com' \
--to=eludom@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=gmj@pobox.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).