emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Invalid function: with-parsed-tramp-file-name with Perl


From: Loris Bennett
Subject: Re: [O] Invalid function: with-parsed-tramp-file-name with Perl
Date: Thu, 20 Sep 2012 16:12:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Nick Dokos <address@hidden> writes:

> Achim Gratz <address@hidden> wrote:
>
>> Nick Dokos writes:
>> > Loris Bennett <address@hidden> wrote:
>> >> In the *Org-Babel Error Output* buffer, I get the following:
>> >> 
>> >> /bin/bash: /scpc:address@hidden:/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 /address@hidden:/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:address@hidden:/tmp/sh-script-4062nYW...done
| Tramp: Encoding region using function `base64-encode-region'...done
| Tramp: Decoding region into remote file 
/scpc:address@hidden:/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:address@hidden:/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 address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]