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


Click here to return to the 'Auto mount your iDisk at startup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto mount your iDisk at startup
Authored by: bmhunt on Oct 18, '06 09:54:53AM
This works for me:

cat ~/webdav_pass | mount_webdav -a0 http://idisk.mac.com/User/Backup ~/iDisk_Backup

The ~/webdav_pass file I created with a perl script which takes 3 arguments: the file, user and password:

#!/usr/bin/perl

$file = shift;
$user = shift;
$pass = shift;

$upack = pack('CCCC',0,0,0,length($user));
$ppack = pack('CCCC',0,0,0,length($pass));

open WDF, ">$file" or die "Cannot open $file for writing";
print WDF $upack, $user, $ppack, $pass;
close WDF;
I don't know how to mount the root of the iDisk directory. I was quite happy to just get this.

[ Reply to This | # ]
Auto mount your iDisk at startup
Authored by: bmhunt on Oct 18, '06 10:03:19AM
Incidentally, rather than creating a perl script, you can just run it from the command-line, to create the webdav password file, likeso (replacing user and password accordingly):

perl -e 'foreach ("user","password") {print pack("CCCC",0,0,0,length($_)).$_}' > webdav_pass_file

Hope that helps someone.

[ Reply to This | # ]