[Project_owners] run Shell Script on Mac with nsIProcess
Gary Johnson
gary.johnson.53 at gmail.com
Fri Sep 7 12:10:17 PDT 2007
I changed init code to this
--------------
/*
void init ( nsIFile file , PRInt32 ioFlags , PRInt32 perm , PRInt32
behaviorFlags )
Arguments:
file: - file to write to (must QI to nsILocalFile)
ioFlags:
0x04 | 0x08 | 0x20 read + write, create, truncate
perm: -
00700 read, write execute
behaviorFlags: flags specifying various behaviors of the class
(currently none supported)
0
*/
fos.init(scriptfile, 0x04 | 0x08 | 0x20,0700, 0);
--------------
It shows up as this
-rwx------ 1 garyjohn garyjohn 170B Sep 7 15:01 gjtemp.sh
however, it does not create a Test1.out
On 9/7/07, Neil <neil at parkwaycc.co.uk> wrote:
> Gary Johnson wrote:
>
> >I create the file gjtemp.sh fine.
> >
> Did you create it with execute permissions or just read and write?
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
--
I hope to be the kind of person my dog thinks I am. :)>
http://mywebpages.comcast.net/adgj/
http://wwwCookDotCom.com
More information about the Project_owners
mailing list