Shell scripting from java file
Hi All,
I use Linux 8 and JSP with tomcat. In my project I create a folder and from mysql I export the data to a folder. I have a parent folder "/usr/local/DB/". Within this folder I create dynamic folders from java (File.mkdir()). The rights for the dynamic folder is assigned "rwxr-xr-x". But I want the rights to be "rwxr-xrwx", so that I can use the "SELECT ... INTO OUTFILE" command from mysql. How to re-assign the rights from my java program and set the default right for my parent folder so that all the sub-folders have the same rights.
I know I can use "chmod -R 757 dynamicfolder" from the terminal. But I want to do this from my java program or set the defualt right for my parent folder.
Thanks in advance for your sugg.
|