hdiutil behavior in automated scripts
hdiutil behavior in automated scripts
- Subject: hdiutil behavior in automated scripts
- From: Michael Plagge <email@hidden>
- Date: Fri, 29 May 2009 16:01:41 +0200
Hi,
I would like to use hdiutil to automatically create disk images that
are to be provided by a web server running on OS 10.4.11. When testing
the functionality, everything works as expected, given this example
command (for a yet empty image):
echo -n "pass" | /usr/bin/hdiutil create -ov -encryption -stdinpass -
size 1m output.dmg -fs HFS+
The problem occurs when trying to execute this as the web server. I
put this command sequence into an executable shell file which is
called by PHP's exec() function. The disk image is simply not created
as I get error messages like this:
hdiutil: create: returning 6
hdiutil: create failed - device not configured [translated]
Supplying the -verbose and -debug parameters it comes across the
following error hint:
2009-05-29 11:59:07.626 hdiutil[1970] helperClass is DIHelperNBI
2009-05-29 11:59:07.638 hdiutil[1970] error: unable to set up
framework server
I actually expected something like this:
2009-05-29 10:56:14.809 hdiutil[1199] helperClass is DIHelperNBI
2009-05-29 10:56:14.819 hdiutil[1199] using helper tool at "/System/
Library/PrivateFrameworks/DiskImages.framework/Resources/diskimages-
helper".
2009-05-29 10:56:15.287 hdiutil[1199] connectToFramework
...
I would like to know if there is something environmentally that I
missed out by just asking for hdiutil executed by the web server /
PHP. I also came across a post from Kevin Harris (http://lists.apple.com/archives/darwin-dev/2004/Oct/msg00044.html
) that seems to have a similar background, but this has not been
answered at all.
The task to be fulfilled is "just" creating an encrypted disk image,
filled with files from a specific location, and without doing this
interactively but executed by a web server. I did not find any
alternatives to hdiutil, so it would be great to know if this is
possible at all.
Thanks
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden