On Tue, 2005-06-14 at 17:29, Stephen Turner wrote: > On Tue, 14 Jun 2005, George Klein wrote: > > > I'm experimenting with cache files at the moment. When I create one it > > has 0600 permissions although I would like it to have 0640 and I have my > > umask set to 027. > > > > Is there some configuration I've missed or do I just have to do a chmod > > after creating the cache. If analog isn't intended to use umask could > > someone please explain why. > > > > Analog doesn't do anything special with umasks (after all, it's supposed to > be OS independent as far as possible). It just writes to the file. The OS > determines the file permissions. Maybe you're running analog as a different > user in a cron job, not as yourself?
I'm running it from a bash script until I'm happy with it when it will go into a cron job. I've already put "umask" and "touch file" into the script to check what happens and they work as expected. Any ideas what else I could try or if there's any special cases for umask or permissions which I should read up on? In case I'm doing something dumb, the way analog is called is: awk 'commands' logfile | analog +gconfig +C"CACHEOUTFILE cache" +C"OUTPUT NONE" - Everything except the cache file's permissions looks OK. Thanks again. +------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------

