hdiutil behavior in automated scripts
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, hdiutil: create: returning 6 hdiutil: create failed - device not configured [translated] I actually expected something like this: Thanks Michael _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: 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 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Plagge