Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: chmod
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chmod



It worked for me (with the escaped characters).  Are you sure
it's not because of the '/' at the beginning of your filename?
Is your file really in the '/' directory?

Kevin Ryan

<email@hidden> wrote:
I am trying to execute chmod command using java.lang.Process,
for example:

Process process = Runtime.getRuntime ().exec (
	new String [] {
		"chmod",
		"g+w",
		"/あいうえお.txt"
	}
);

but chmod command doesn't recognize NON-ASCII characters. Even if I
give NON-ASCII-ESCAPED characters like
/\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212.txt ,
it doesn't work.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.