home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_1a274076c4c9a94b70f79d0ecfa1d78c
< prev
next >
Wrap
Text File
|
2000-03-15
|
472b
|
22 lines
#!/usr/bin/perl
# $RCSfile: vanexp,v $$Revision: 4.1 $$Date: 92/08/07 17:20:53 $
# This is for running from a find at night to expire old .deleteds
$can = $ARGV[0];
exit 1 unless $can =~ /.deleted$/;
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
$blksize,$blocks) = stat($can);
exit 0 unless $size;
if (time - $mtime > 2 * 24 * 60 * 60) {
`/bin/rm -rf $can`;
}
else {
`find $can -ctime +2 -exec rm -f {} \;`;
}