aspose file tools
The moose likes Linux / UNIX and the fly likes Invoke Java code from Korn script and UNIX env setting Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Invoke Java code from Korn script and UNIX env setting" Watch "Invoke Java code from Korn script and UNIX env setting" New topic
Author

Invoke Java code from Korn script and UNIX env setting

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 314
My unix script calls a java class which write files to some directories.
In my unix script if I set the environment variable "umask" to a certain value, will the file(s) generated by Java class follow the same umask setting we set in the script ? i.e. will the umask setting get lost ?
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

not if the JVM is started from the same environment that exists within the script where the umask is set.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Invoke Java code from Korn script and UNIX env setting
 
Similar Threads
JDK1.5 installation failed on ubuntu linux 11.10 server
log4j generated file permission
Xmx
umask question
Control of file/directory chmod and chown when copying in a .war file