From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: MobileOrg, webdav, correct use of org-mobile-directory? Date: Sun, 12 Aug 2012 08:40:23 -0400 Message-ID: <32217.1344775223@alphaville> References: <87d32w6cqj.wl%jamshark70@dewdrop-world.net> <29702.1344745760@alphaville> <877gt45oho.wl%jamshark70@dewdrop-world.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0XT2-00036G-F2 for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 08:40:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0XT1-0000kA-4a for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 08:40:28 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:29828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0XT0-0000k5-UC for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 08:40:27 -0400 In-Reply-To: Message from James Harkins of "Sun, 12 Aug 2012 19:38:43 +0800." <877gt45oho.wl%jamshark70@dewdrop-world.net> 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: James Harkins Cc: emacs-orgmode@gnu.org James Harkins wrote: > At Sun, 12 Aug 2012 00:29:20 -0400, > Nick Dokos wrote: > > This looks wrong - if you try it with scp from the command line, can > > you copy a file to that destination? > > OK, I played a little more with scp and got closer -- I can copy a file from the command line: > > scp /home/[myuser]/tmp/afile.txt [user]@localhost:/var/www/mobileorg/web > There are two possibilities here: o /var/www/mobileorg/web is a directory and you are copying the file into that directory under the name "afile.txt". o /var/www/mobileorg is a directory, /var/www/mobileorg/web either does not exist or is a file in that directory and you are copying the file into the directory /var/www/mobileorg under the name "web". The directory check *should* catch this case, but you might want to double check that the "remote" directory localhost:/var/www/mobileorg/web does indeed exist and is writable by [myuser]. > And "[user]@localhost:/var/www/mobileorg/web" for org-mobile-directory avoids the directory check error, but then: > > org-mobile-create-sumo-agenda: Cannot write to file /scpc:user@localhost:/var/www/mobileorg/web/agendas.org > Also check the permissions on /var/www/mobileorg/web: in particular, you might want to execute the following check (the check that org-mobile-create-sumo-agenda does) in your *scratch* buffer: (file-writable-p "/scpc:nick@pierrot:/var/www/mobileorg/web/agendas.org") Just cut and paste it into your *scratch* buffer, put the cursor after the closing paren and press C-j. If it says nil, something is wrong. One more thing: is tramp enabled in your emacs? Just try to open the remote directory with C-x C-f /scpc:[user]@localhost:/var/www/mobileorg/web RET I'm not sure that tramp needs any special attention (I cannot find anything in my setup), but it doesn't hurt to check. Nick > Same error if I change org-mobile-directory to be /scp:blahblah instead of /scpc. > > So: okay at the commandline, not from Emacs. > > As mentioned, it's a bit on the academic side because I can just use a local path. But, if I'm going to update the documentation, I'd like to get it to run successfully through scp once. > > Thanks. > hjh > > > -- > James Harkins /// dewdrop world > jamshark70@dewdrop-world.net > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > > blog: http://www.dewdrop-world.net/words > audio clips: http://www.dewdrop-world.net/audio > more audio: http://soundcloud.com/dewdrop_world/tracks >