0

I have an account on remote network file system and files older that 12 weeks are purged. I was wondering if it is a good idea to touch every file once in a week using crontab.

Some files on that filesystem are being updated by different numerical programs running on the cluster. Would there be any conflict if a file is being updated and was touched at the same time?

This is what I am planning to do:

crontab file

0 0 * * 0 find /globle/scratch/sd/pratik -exec touch { } \;
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
user2958481
  • 587
  • 2
  • 8
  • 20
  • 1
    I find it very difficult to believe that they expect every file to be modified frequently. They probably check the access time, not modification time. – Barmar Nov 06 '13 at 00:37
  • So use `touch -a` to update the access time. – Barmar Nov 06 '13 at 00:37
  • access time is set to mod time or creation time by most admins to save cpu time. – michael501 Nov 06 '13 at 03:20
  • You might talk to the system administrator about why old files are purged, why you need to keep older files, and how to preserve them. – chepner Nov 06 '13 at 13:46

0 Answers0