File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
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: 316
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://aspose.com/file-tools
 
subject: Invoke Java code from Korn script and UNIX env setting