Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'mount_webdav' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
mount_webdav
Authored by: bluehz on Apr 19, '02 10:57:13AM

Now if we could just figure out how to use the builtin mount_webdav commands so we could do this through scripting, terminal, etc. In particular I want to use it with rsync to automate a small backup nightly to my iDisk. Unfortunately when I mount my iDisk via Goliath it does not show up in the Volumes as mounted and can't really be used for backups, etc...unless I am missing something here.

With mount_webdav command a sehll script can be incorporated that creates a mount point, mounts the idisk, then runs rsync to perform the backup/sync.

There was a post in here about this exact procedure:

Automount your idisk at startup
http://www.macosxhints.com/article.php?story=20020207214002198

I have tried and tried to get the techniques to work listed with no luck at all. The procedure explains how to send your log/pass in a format that I am not really sure I understand. The author is anonymous so contact is not possible. I have posted ? on forums with no replies. Sure would like to open up this topic again since we are on the topic of WebDAV.

Does anyone have ANY IDEAS on the proper procedure for using mount_webdav? Please explain.

- thx



[ Reply to This | # ]
mount_webdav format
Authored by: tz on Apr 19, '02 07:47:36PM

The format is a pair of 4 bytes which is the length of the string, followed by the string. e.g. for a string ABCDEFG, it would be 0x00 0x00 0x00 0x06 0x41 0x42 0x43 0x44 0x45 0x46 - 6 bytes long, so 0 0 0 6, followed by "ABCDEF".

You need the username len/string followed by the password len/string.



[ Reply to This | # ]
mount_webdav format
Authored by: bluehz on Apr 20, '02 09:04:04AM

That explains it a little better. So in the example you provided - you would send:

UserLen: 0x000x00x00x06
User: ABCDEF < 0x410x420x430x440x450x46
PWLen: 0x000x000x000x03
Pass: ABC < 0x410x420x43

You would send:

0x000x00x00x060x410x420x430x440x450x460x000x000x000x030x410x420x43

to this command:

mount_webdav -a0 http://idisk.mac.com/<user> /Volumes/<mount>

Is this correct?

In the example earlier they CAT a file to the cmd....so I would put:

0x000x00x00x060x410x420x430x440x450x460x000x000x000x030x410x420x43

into the text file.



[ Reply to This | # ]