Re: How to mount an iDisk?
Re: How to mount an iDisk?
- Subject: Re: How to mount an iDisk?
- From: Brant Vasilieff <email@hidden>
- Date: Mon, 25 Feb 2002 10:03:05 -0800
Thanks for the suggestion.
mount doesn't appear to handle WebDAV, and I couldn't find a man entry
for mount_webdav. I have both a client and a server. Although it's
likely going to only ever be the client that initiates the update,
technically it's the server that contains the data. SInce I'm already
using DO, the client can fetch the data and upload it to the iDisk.
However, if I wanted to automate the process, there's a possibility that
the user will not be logged in, and thus no finder present.
Is there a UNIX tool that will work in the finders absence?
I was also under the impression that system() wasn't recommended for
security reasons. Although the first thing the server does, when
launched, is to setuid to a server user, like www for apache, there's a
chance that the server, if missconfigured, could still be running as
root.
On Monday, February 25, 2002, at 01:19 AM, Steve Gehrman wrote:
I sent an apple event to the Finder, but I want to rewrite it using the
mount command or mount_webdav. I'm not sure how to do that yet.
+ (void)mountiDisk:(NSString*)userName password:(NSString*)password
{
[self mountAppleShareVolume:userName password:password
address:@"idisk.mac.com" volumeName:userName];
}
+ (void)mountAppleShareVolume:(NSString*)userName
password:(NSString*)password address:(NSString*)address
volumeName:(NSString*)volumeName;
{
NSString* command;
ThreadedSystemCommand* thread;
command = [NSString stringWithFormat:@"echo 'Tell Application
\"Finder\" \r mount volume \"afp://%@:%@@%@/%@\"\rend tell' |
/usr/bin/osascript", userName, password, address, volumeName];
system([command cString]);
}
On Monday, February 25, 2002, at 12:35 AM, Brant Vasilieff wrote:
Did you happen to get a reply to this. I've been wondering the same
thing,
Cheers,
Brant
--
Steve Gehrman
CocoaTech
email@hidden
http://www.cocoatech.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.