in reply to File::CounterFile problems : access from mulitple scripts and zeroing counter

Something quick and dirty? How about this in the script that creates the file:

`chmod 666 ./asr_counter.txt`

Of course, there are better ways, like making the scripts that write it and read it members of the same group, and then setting your up their umask accordiningly. Alternatively, you could have the reading script suid to the user that write the file...

"Never take yourself too seriously, because everyone knows that fat birds dont fly" -FLC
  • Comment on Re: File::CounterFile problems : access from mulitple scripts and zeroing counter
  • Download Code