Hi,
Unless you can use "/usr/sbin/diskutil" as your File name and pass
the other "elements" of the command line as separate arguments, then you
might have to be more creative with your approach.
1. Write a shell script that encapsulates this command and call
that.
2. Capture the output of the first command and use Regular
expressions to extract the UUID yourself?
Glen
On 29/07/2011 13:16, Sumeet Kumar wrote:
Thanks Karl.
But I want to run shell script from adobe air and also I am able to run
simple shell script commands from the native process API.
The problem in the this command mentioned below is
"/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'"
That it has two commands , the first one is "/usr/sbin/diskutil info /" and
the second one is "/usr/bin/awk '$0 ~ /UUID/ { print $3 }'" seprated by "|"
And the second command takes the ouput of first command as input. And I
don't know how to use this in adobe air native process API
Hope I am able to explain my problem in a better way now. Apologies for not
being very clear in my first email.
Thanks again.
-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Friday, July 29, 2011 5:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NativeProcess On Mac
Hi Sumeet,
Found this. Take a look.
http://www.adobe.com/devnet/air/flash/quickstart/articles/
interacting_with_native_process.html
Looks like it talks about integrating with XCode, which is what I think you
need for mac. But it has both mac and pc.
Also, I googled "Flash NativeProcess API and XCode", there looked to be a
barrel full.
HTH,
Best,
Karl
On Jul 29, 2011, at 6:38 AM, Sumeet Kumar wrote:
Hi All,
I am using Nativeprocess in adobe air for a MAC desktop application. I
need to find the volume UUID for mac. I have found a shell script
command which is like this
"/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'"
This command works fine on Mac Terminal. But I am not able to figure
out how to use this with NativeProcess API.
Any help or suggestion on this regard would be great
Regards
Sumeet Kumar
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders