Re: hdiutil attach fails under some repeatable circumstances
Re: hdiutil attach fails under some repeatable circumstances
- Subject: Re: hdiutil attach fails under some repeatable circumstances
- From: Chris Espinosa <email@hidden>
- Date: Fri, 19 Oct 2007 08:29:36 -0700
On Oct 19, 2007, at 7:39 AM, Brant Sears wrote:
Hi. I'm having a problem with hdituil attach.
I have a build script that builds a software product. The final
phase executes another script that packages the software onto
a .dmg. In order to do this, it takes a "templated" dmg, makes a
copy, mounts it, copies the software onto to mounted volume,
unmounts it, converts the format to read only (UDRO), unflattens
it, adds a resource for a software license agreement, flattens it
again, the converts it to UDZO.
I pasted in the script that does this into the bottom of this message.
This script works fine except under one particular circumstance.
The way that I want to invoke my build script is from a web page.
In order to do this, I have a script that runs all the time on my
server. It wakes up every 10 seconds and checks to see if a certain
file exists which contains "commands" for it. The commands it
knows are to either exit or build the software.
My CGI script basically writes out a "command" into this file to
build the software (with some arguments). My script doesn't
actually execute anything in this file, just reads it, interprets
it, and then builds the software and then deletes the file
containing the command and goes back to sleep.
Again, this works fine if I ssh into my server, startup the
background script, and then stay logged in.
However, once I log out of my server box (which is actually just a
G4 Mac mini running standard Tiger which I'm using to do formal
builds and host a little web page for the builds), the hdiutil
attach call fails. At this point, I don't see the actual error
message, but my script tests for whether the volume is mounted and
it reports a failure.
What am I doing wrong? Is there a known limitation for hdiutil
attach? Also, I apologize if this isn't the best list to ask this.
Try email@hidden or darwin-
email@hidden as I'm afraid few, if any, of us in
Xcodeland can help you with what's going on with hdiutil.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden