Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script execution error



Hello All,

I am trying to execute a shell script from carbon
application(OS X). I am using
OSACompile and OSAExecute functions for compiling and
executing the script. I
am facing a problem while executing a script.
I am trying this command-
do shell script " diskutil partitionDisk disk1 2
OS9Drivers bootable HFS+ Test1
14G HFS+ Test2 13G"

The problem is that, when I run the application for
the first time, this command
does not partition the disk.
I am getting error - "Unmount sync timed out, the
unmount still might be
happened! Error opening device for reading/writing.
Error creating partition
map."

When I execute the same command next time. It works
without error. I have tried
this several times and this behavior is consistent. I
think when the script is
compiling for the first time, it is taking more time
and while executing the same
script next time, it takes the compiled script and is
able to execute the command
properly.

Is there a way to find out whether OSAExecute is
getting called before
OSACompile is completely executed?

If I try to execute small script like -
Usage: diskutil rename /Volumes/SomeDisk SomeNewName
This is working without fail every time.

Can anybody explain me what is going wrong?
If you want the code, I can send it to you.

Thanks,
Arati



=====
Arati Jana
OAS

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.