Nick Dokos <nicholas.do...@hp.com> writes: > Achim Gratz <strom...@nexgo.de> wrote: > >> Nick Dokos writes: >> > Loris Bennett <loris.benn...@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.benn...@fu-berlin.de