Hello Everyone,
I am trying to write a perl script that finds files that have not been accessed for x amount of days. I coded it using a system call with an unix find command:
system("find ${directory_path} -follow -type f -atime +${max_days} -exec /usr/bin/ls -lurt > $results_file {} \\;");
but I don't want to use a system call......I was thinking that I can use the File::Find module in perl, but the problem is that when I use atime (coming from stat(filename) it has the last access time in seconds since the epoch....any ideas?
Thanks.