emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Invalid function: with-parsed-tramp-file-name with Perl
Date: Thu, 20 Sep 2012 16:12:17 +0200	[thread overview]
Message-ID: <87a9wkwzpa.fsf@slate.zedat.fu-berlin.de> (raw)
In-Reply-To: 9580.1348084284@alphaville.americas.hpqcorp.net

Nick Dokos <nicholas.dokos@hp.com> writes:

> Achim Gratz <Stromeko@nexgo.de> wrote:
>
>> Nick Dokos writes:
>> > Loris Bennett <loris.bennett@fu-berlin.de> wrote:
>> >> In the *Org-Babel Error Output* buffer, I get the following:
>> >> 
>> >> /bin/bash: /scpc:xxxxx@xxxxxx:/tmp/sh-script-7472puH: No such file or directory
>> 
>> It would seem that you are trying to use a remote file with a local
>> bash.  That won't work, especially since bash doesn't understand what
>> that tramp syntax invoking scpc is about… You need to either invoke that
>> script on the remote end or copy the file to local and source it there.
>> 
>> > But probably the best thing to do is to leave org out of it and try opening
>> > the file directly: it seems to be a tramp problem.
>> 
>> Sort of, but it wouldn't exist without Babel if I decode the temporary
>> filename correctly.
>> 
>
> Duh - you are right. OTOH, I don't understand how this could ever have
> worked.  IIUC, the OP says that he had *something* working, although
> revisiting the thread I don't see what that was.
>
> Nick

I used to be able do all sorts of stuff with sh, Perl and R.  Now the
following example no longer works:

,---------------------------------------------------
| #+begin_src sh :dir /xxxx@xxxx:/tmp
| echo "Executed by `whoami` on `hostname` in `pwd`"
| #+end_src
`---------------------------------------------------

I get the following in *Messages*:

,------------------------------------------------------------------------------------------
| executing Sh code block...
| Tramp: Encoding region using function `base64-encode-region'...done
| Tramp: Decoding region into remote file /scpc:xxxx@xxxx:/tmp/sh-script-4062nYW...done
| Tramp: Encoding region using function `base64-encode-region'...done
| Tramp: Decoding region into remote file /scpc:xxxx@xxxx:/tmp/sh-script-4062nYW...done
| Babel evaluation exited with code 127
| Code block produced no output.
`------------------------------------------------------------------------------------------

and, as mentioned earlier,  the corresponding line in *Org-Babel Error Output*

,--------------------------------------------------------------------------------
| bin/bash: /scpc:root@sadmin02:/tmp/sh-script-4062nYW: No such file or directory
`--------------------------------------------------------------------------------

Does this work on other people's systems?  Should it work?

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.bennett@fu-berlin.de

  reply	other threads:[~2012-09-20 14:12 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 11:54 Invalid function: with-parsed-tramp-file-name with Perl Loris Bennett
2012-06-21 13:53 ` Nick Dokos
2012-06-21 14:51   ` Loris Bennett
2012-06-21 15:13     ` Nick Dokos
2012-06-25  7:05       ` Loris Bennett
2012-09-18 14:04         ` Loris Bennett
2012-09-19  7:45           ` Bastien
2012-09-19  9:28             ` Loris Bennett
2012-09-19  9:59               ` Bastien
2012-09-19 10:29                 ` Loris Bennett
2012-09-19 13:49                   ` Nick Dokos
2012-09-19 18:52                     ` Achim Gratz
2012-09-19 19:51                       ` Nick Dokos
2012-09-20 14:12                         ` Loris Bennett [this message]
2012-09-20 15:11                           ` Nick Dokos
2012-09-20 15:30                             ` Nick Dokos
2012-09-20 17:21                               ` Nick Dokos
2012-09-20 17:36                                 ` Nick Dokos
2012-09-20 18:29                                   ` Eric Schulte
2012-09-20 19:18                                   ` Achim Gratz
2012-09-20 20:51                                     ` Nick Dokos
2012-09-20 21:00                                       ` Achim Gratz
2012-09-20 22:26                                         ` Nick Dokos
2012-09-21 17:49                                           ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2012-09-22  5:05 Nick Dokos
2012-09-22  6:41 ` Achim Gratz
2012-09-22  6:57   ` Bastien
2012-09-22  7:03     ` Achim Gratz
2012-09-22  8:19       ` Bastien
2012-09-22 11:57         ` Achim Gratz
2012-09-22 16:14           ` Bastien

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=87a9wkwzpa.fsf@slate.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --cc=emacs-orgmode@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 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).