From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Invalid function: with-parsed-tramp-file-name with Perl Date: Thu, 20 Sep 2012 16:12:17 +0200 Message-ID: <87a9wkwzpa.fsf@slate.zedat.fu-berlin.de> References: <87hau4ubgp.fsf@slate.zedat.fu-berlin.de> <7708.1340286834@alphaville> <87a9zwvhtp.fsf@slate.zedat.fu-berlin.de> <8083.1340291591@alphaville> <87395jub00.fsf@slate.zedat.fu-berlin.de> <877grro2av.fsf@slate.zedat.fu-berlin.de> <87haqupgfx.fsf@bzg.ath.cx> <87k3vqfjkd.fsf@slate.zedat.fu-berlin.de> <87wqzql4e6.fsf@bzg.ath.cx> <87boh2fgqu.fsf@slate.zedat.fu-berlin.de> <6364.1348062546@alphaville> <878vc5n8uu.fsf@Rainer.invalid> <9580.1348084284@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEhUd-0004qM-LP for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 10:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEhUY-0003TH-Mw for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 10:12:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:58743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEhUY-0003T8-FY for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 10:12:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TEhUZ-0006VH-9a for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 16:12:35 +0200 Received: from zab1d.pia.fu-berlin.de ([87.77.171.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Sep 2012 16:12:35 +0200 Received: from loris.bennett by zab1d.pia.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Sep 2012 16:12:35 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > Achim Gratz wrote: > >> Nick Dokos writes: >> > Loris Bennett 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