in reply to Re^3: unlink files
in thread unlink files
My point is where do i need to correct
where is the problem comes from
How i can delete those files which are 30minutes older
based on my script, not bash, or command line. your example are really confusing
for my $file(@$folder) { my $time = (stat($file))[9]; my $mod_time = strftime('%M', localtime($time)); if ($mod_time > '30') { unlink glob "$folder/*.sql"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: unlink files
by Corion (Patriarch) on Aug 07, 2024 at 18:11 UTC |