Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: File::CounterFile problems : access from mulitple scripts and zeroing counter

by scmason (Monk)
on Sep 26, 2005 at 17:11 UTC ( [id://495162]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://495162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found