Re: Report - saving into file
Posted in 1991
> ... Stuff deleted ... > A simpler answer is to write a shell script along the lines of: > > > #!/bin/sh > > umask 0660 > > your_4gl_app > > This will have your_4gl_app create it's files with the group write > permission turned on. Then anyone in the same group will be able to > overwrite the file. If people in different groups need to be able to > write the file, change the ``umask 0660'' to ``umask 0666''. > > Hope this helps, > jeffl > > > ---- > Jeffrey F. Lawhorn Information Systems Group > Programming Manager Unix, C, and Database Consulting > jfl0@isg.com 450 B Street 16th Floor > sdsu!isg100!jfl0 San Diego, CA 92101 (619) 234-3405 x274 > Jeff, you got the umask values backwards since it is subtracted from the file creation modes, thus the shell script should read "umask 006". To give write access to everyone, the umask value should be set to "000". Charles Lei Mediatech, Inc. E-Mail: uunet!mtcdev!lei Voice: (312) 828-1146