theniteowl
Programmer
We have a java script that generates files in a folder on our Linux server that need to be picked up by a process on another server but the files are being written with RW only permissions and we need them written with RW-R--R--
The folder is setup to default to the RW-R--R-- permissions when new files are created but somehow the Java app is setting it differently.
Until I can figure this out can someone show me how to setup a simple script to periodically execute the command CHMOD 644 /ops/acct/*.JRF?
Every 10 - 20 minutes should be sufficient but my Linux skills are still fairly basic.
This is an automated process that needs to occur relatively quickly but we cannot sit and monitor the folder all night long to keep modifying the files.
Any help would be appreciated.
At my age I still learn something new every day, but I forget two others.
The folder is setup to default to the RW-R--R-- permissions when new files are created but somehow the Java app is setting it differently.
Until I can figure this out can someone show me how to setup a simple script to periodically execute the command CHMOD 644 /ops/acct/*.JRF?
Every 10 - 20 minutes should be sufficient but my Linux skills are still fairly basic.
This is an automated process that needs to occur relatively quickly but we cannot sit and monitor the folder all night long to keep modifying the files.
Any help would be appreciated.
At my age I still learn something new every day, but I forget two others.