You could use JNI. A cheap/kludgy way would be to use the Runtime class to execute "ls -l" and parse the result. --- Ramakrishna Kuppa <[EMAIL PROTECTED]> wrote: > Is there anyway for me to get the permissions for a file using Java? The OS > is Solaris. > > For instance, say, you have installed the complete Oracle DB on your Solaris > 2.8 OS system. We know then, that there is this sqlplus executable file > under install_dir/bin directory. Now, I would like to get the file > permissions (read, write and execute) for the user, group AND others for > that file. How can I get that info. (in total 9 pieces) using Java? > > Thanks > > > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm >
===== Mark Zawadzki Performance Engineer/DBA/Programmer extraordinaire�[EMAIL PROTECTED] [EMAIL PROTECTED]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winningRobert Cringle (columnist, author, host of "Triumph of the Nerds") __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
