emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: jamshark70@dewdrop-world.net
Cc: emacs-orgmode@gnu.org
Subject: Re: MobileOrg, webdav, correct use of org-mobile-directory?
Date: Sun, 12 Aug 2012 09:11:06 -0400	[thread overview]
Message-ID: <32411.1344777066@alphaville> (raw)
In-Reply-To: Message from James Harkins <jamshark70@gmail.com> of "Sun, 12 Aug 2012 15:12:57 +0800." <CAFniQ7UX8M5CaxL8rA+0UWZ4m5gpjnN1gUAeXAQcjVxoPSV+BA@mail.gmail.com>

James Harkins <jamshark70@gmail.com> wrote:

> On Aug 12, 2012 12:29 PM, "Nick Dokos" <nicholas.dokos@hp.com> wrote:
> > But from what you show below, you are not using cadaver (or anything
> > webdav-related for that matter) to do the copying. You are using
> > scp: *that*'s what you've got to get working.
> 
> When configuring a new service, it's useful to conduct a minimal test to ensure that nothing is
> wrong with the service. That was the point of using cadaver.
> 

I agree completely, but the cadaver test does not have anything to do
with copying files to the remote directory, only with the syncing part
from the remote directory to your phone (assuming I've got things right:
I don't have a smart phone, I don't use mobileOrg and I've not read the
docs in detail). In this case, the proper minimal test is scp from the
command line, not cadaver.

OTOH, the cadaver test *is* useful at the other end of the conversation:
if syncing to the phone does not work, then debugging webdav problems
using cadaver is certainly indicated.

> For my immediate needs, I think I can do without scp, since org-mode
> and Apache are on the same machine. The broader point is about the
> documentation. It says "do it this way" but "this way" doesn't work.

I read the page on worg and I agree it's unclear: it talks about using
webdav and then does not use webdav at all, just scp. But I don't agree
that it does not work: I've done a minimal setup with scp and tramp and
org-mobile-push/pull worked fine for me. I suspect that you are still
having some setup problems as indicated in my other email.

> 
> > > org-mobile-directory: /scpc:**user**@localhost:80/webdav/
> > >
> >
> > This looks wrong - if you try it with scp from the command line, can
> > you copy a file to that destination?
> 
> 1. How do I use scp from the command line?
> 

Your other email shows that you figured this out.

> 2. This destination is modeled on the docs, so if it's wrong, then so is the doc.
> 

Not really: the destination in the doc does not specify the port (80).
That's the HTTP port, so scp won't work with that - that's what I picked
up when I said it looked wrong. It needs the sshd port (22 by default
and implied if you leave it out of the scp path in tramp).

> > Where does org-mobile-directory point to if not the "physical location
> > of the webdav share"? The tramp stuff doesn't know or care about webdav
> > at all: it is just the mechanism that copies files from your local
> > machine to some other machine, so it needs to know exactly where to copy
> > it to.
> 
> Well, it almost looks to me like org-mobile-directory is asked to do two things at once: specify the
> scp syntax *and* hold a path that can be resolved on the local file system. This is the source of my
> confusion.
> 

You mean the "remote file system" I think, but that's true: it does
specify the protocol (scp) and the path. I think your confusion is that
you also wanted it to be the webdav path and it just cannot be that.

> At best, the docs are unclear.
> 

Yup.

> No matter for me. I'll just set org-mobile-directory to the physical, local path that is remotely
> accessible by webdav. But the doc was rather misleading, suggesting that some editorial attention
> would be warranted.
> 

Amen to that.

Nick

> hjh
> 
> 

  parent reply	other threads:[~2012-08-12 13:11 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 16:37 org-url-hexify-p is not respected James Harkins
2012-09-10  1:50 ` James Harkins
     [not found]   ` <jamshark70@gmail.com>
2012-08-12  2:55     ` MobileOrg, webdav, correct use of org-mobile-directory? James Harkins
2012-08-12  4:29       ` Nick Dokos
2012-08-12  7:12         ` James Harkins
2012-08-12  8:43           ` Bastien
2012-08-12  8:50             ` James Harkins
2012-08-12 13:11           ` Nick Dokos [this message]
2012-08-18 23:25             ` Adam Spiers
2012-08-19  1:35               ` Adam Spiers
2012-08-19  5:49                 ` James Harkins
2012-08-20 20:03                 ` Rémi Vanicat
2012-08-19  2:41               ` Nick Dokos
2012-08-12 11:38         ` James Harkins
2012-08-12 12:40           ` Nick Dokos
2012-08-12 13:12             ` Nick Dokos
2012-09-29 16:34     ` LaTeX beamer export: relative file links? Nick Dokos
2012-09-30  2:04       ` James Harkins
2013-01-10  3:40     ` <M-S-left/right> changed? Nick Dokos
2013-01-10  9:17       ` James Harkins
2013-02-05  7:21     ` New exporter, beamer confusion Nick Dokos
2013-02-05  9:01       ` James Harkins
2013-02-05 13:20         ` Sebastien Vauban
2013-02-05 13:55         ` Nick Dokos
2013-02-05 19:03         ` Nicolas Goaziou
2013-02-06  0:11           ` Eric S Fraga
2013-02-06 18:55             ` Nicolas Goaziou
2013-02-06 22:39               ` Eric S Fraga
2013-02-07 12:31                 ` Nicolas Goaziou
     [not found]                   ` <37646106030B4CA98C6A7717FBD89D50@gmail.com>
     [not found]                     ` <87vca4jigj.fsf@gmail.com>
2013-02-07 14:49                       ` Vincent Beffara
2013-02-07 14:58                         ` Nicolas Goaziou
2013-02-07 17:08                           ` Rasmus
2013-02-07 21:48                             ` Nicolas Goaziou
2013-02-07 23:38                               ` Rasmus
2013-02-08 21:41                                 ` Nicolas Goaziou
2013-02-08 13:40                   ` Eric S Fraga
2013-02-06  2:12           ` James Harkins
2013-02-06  4:35             ` Eric S Fraga
2013-02-06 12:32             ` Rasmus
2013-02-06 13:12               ` Suvayu Ali
2013-02-06 13:45               ` Sebastien Vauban
2013-02-06 19:57             ` Nicolas Goaziou
2013-02-07  1:32               ` James Harkins
2013-02-05  9:36       ` Eric S Fraga
2013-02-25  6:25     ` How to make the new exporter open PDF using evince? James Harkins
2013-02-25  7:01       ` Mike Gauland
2013-02-25  6:52     ` Nick Dokos
2013-02-25 13:06       ` James Harkins
2013-02-26  2:40         ` Martin Marier
2013-02-27  9:51           ` James Harkins
2012-09-10  4:58   ` org-url-hexify-p is not respected Nick Dokos
2012-09-10  6:16     ` James Harkins
2012-09-10  6:37       ` Jambunathan K
2012-09-10  6:48         ` James Harkins
2012-09-10  7:12           ` Jambunathan K
     [not found]             ` <CAFniQ7W_5QMUawD2NObyhy2_Y647as-NthobZ9OgAX4NLcVJBw@mail.gmail.com>
2012-09-11 10:22               ` James Harkins
2012-09-11 13:10                 ` Activating modules before org-install (was: org-url-hexify-p is not respected) Memnon Anon
2012-09-11 13:56                   ` Jonathan Leech-Pepin
2012-09-11 17:06                 ` org-url-hexify-p is not respected Charles Philip Chan
2012-09-23 10:05                 ` Bastien
2012-09-26 17:59                   ` Michael Brand
2012-09-26 21:50                     ` Bastien
2012-09-27  6:18                       ` Michael Brand
     [not found] <CAFniQ7UgwaQ5jO2r7iJ7PbakWfpvsJGZw2FNNf+sawwvKqSUqQ@mail.gmail.com>
2012-09-29  5:55 ` LaTeX beamer export: relative file links? James Harkins
  -- strict thread matches above, loose matches on Subject: below --
2013-01-10  2:38 <M-S-left/right> changed? James Harkins
2013-02-04  4:00 New exporter, beamer confusion James Harkins
2013-02-04  6:39 ` Suvayu Ali
2013-02-04  8:55   ` James Harkins
2013-02-04 19:51     ` Nicolas Goaziou
2013-02-05  0:09       ` James Harkins
2013-02-05 12:32       ` Eric S Fraga
2013-02-05 18:06         ` Nicolas Goaziou
2013-02-05 23:49           ` Eric S Fraga

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=32411.1344777066@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@dewdrop-world.net \
    /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).