emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Loris Bennett <loris.bennett@fu-berlin.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Invalid function: with-parsed-tramp-file-name with Perl
Date: Wed, 19 Sep 2012 09:49:06 -0400	[thread overview]
Message-ID: <6364.1348062546@alphaville> (raw)
In-Reply-To: Message from "Loris Bennett" <loris.bennett@fu-berlin.de> of "Wed, 19 Sep 2012 12:29:13 +0200." <87boh2fgqu.fsf@slate.zedat.fu-berlin.de>

Loris Bennett <loris.bennett@fu-berlin.de> wrote:

> Bastien <bzg@altern.org> writes:
> 
> > Hi Loris,
> >
> > "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
> >
> >> Nothing works now, not even
> >>
> >> #+BEGIN_SRC sh :file tmp.txt :dir /xxxxx@xxxxxxx:
> >> echo hostname
> >> #+END_SRC
> >
> > Maybe you don't have permission to read the /tmp/ dir
> > on the remote machine?
> >
> > Anyway, it's hard to debug with so little information.
> 
> 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
> 
> But the file exists on the remote server:
> 
> $ ls -l /tmp/sh-script-7472puH
> -rwxr-xr-x 1 xxxxxx xxxxxx 15 Sep 19 11:20 /tmp/sh-script-7472puH
> 
> And if I execute it on the remote server, I get the expected result:
> 
> $ /tmp/sh-script-7472puH
> xxxxxx
> 
> So it seems that the call to the temporary file fails.  Is the method
> /scpc: new?  I don't recall seeing it before (but, then again, it used
> to work before, so I never saw an error message ...).
> 

I don't think so. The tramp doc says:

,----
| `scpc' -- `ssh' and `scp'
|      Newer versions of `ssh' (for example OpenSSH 4) offer an option
|      `ControlMaster'.  This allows `scp' to reuse an existing `ssh'
|      channel, which increases performance.
| 
|      Before you use this method, you should check whether your `ssh'
|      implementation supports this option.  Try from the command line
| 
|           ssh localhost -o ControlMaster=yes /bin/true
| 
|      If that command succeeds silently, then you can use `scpc'; but if
|      it fails like
| 
|           command-line: line 0: Bad configuration option: ControlMaster
| 
|      then you cannot use it.  Note, that the option `ControlPersist',
|      if it is supported by your `ssh' version, must be set to `no'.
| 
|      This method supports the `-p' argument.
`----

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.

Nick

  reply	other threads:[~2012-09-19 13:49 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 [this message]
2012-09-19 18:52                     ` Achim Gratz
2012-09-19 19:51                       ` Nick Dokos
2012-09-20 14:12                         ` Loris Bennett
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=6364.1348062546@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=loris.bennett@fu-berlin.de \
    /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).