* Errors from remote sh scripts somewhat non-intuititve
@ 2012-12-28 17:48 George Jones
2012-12-29 10:44 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: George Jones @ 2012-12-28 17:48 UTC (permalink / raw)
To: emacs-orgmode
[-- 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Errors from remote sh scripts somewhat non-intuititve
2012-12-28 17:48 Errors from remote sh scripts somewhat non-intuititve George Jones
@ 2012-12-29 10:44 ` Bastien
2012-12-29 11:57 ` George Jones
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-12-29 10:44 UTC (permalink / raw)
To: gmj; +Cc: emacs-orgmode
Hi George,
George Jones <eludom@gmail.com> writes:
> 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.
For me, when the dir is available, I get a command not found
for the xecho command.
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Errors from remote sh scripts somewhat non-intuititve
2012-12-29 10:44 ` Bastien
@ 2012-12-29 11:57 ` George Jones
0 siblings, 0 replies; 3+ messages in thread
From: George Jones @ 2012-12-29 11:57 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
On Sat, Dec 29, 2012 at 5:44 AM, Bastien <bzg@altern.org> wrote:
> For me, when the dir is available, I get a command not found
> for the xecho command.
>
Same here, after a git-update of org-mode. Not sure what the issue was....
Thanks,
---George
[-- Attachment #2: Type: text/html, Size: 646 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-29 11:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-28 17:48 Errors from remote sh scripts somewhat non-intuititve George Jones
2012-12-29 10:44 ` Bastien
2012-12-29 11:57 ` George Jones
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).