LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2003, 03:07 AM   #1
karthiknataraj
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
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.
 
Old 02-08-2003, 04:47 AM   #2
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Did you try the exec(String command) command ?

Last edited by FredrikN; 02-08-2003 at 09:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH Shell Scripting -- foreach file in folder??? AC97Conquerer Programming 11 07-06-2011 12:25 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
Inserting lines into a file through shell scripting false-hopes Linux - General 1 10-22-2005 11:39 AM
Shell scripting: how to load a function from a file? frankie_DJ Programming 2 08-16-2005 02:16 PM
Reading text from a file using shell scripting. mrobertson Programming 11 06-29-2005 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration