EMPTYTRASH

Section: Maintenance Commands (8)
Index Return to Main Contents
 

NAME

emptytrash - the trash collector used with can  

SYNOPSIS

emptytrash
 

DESCRIPTION

Emptytrash simply looks into each $HOME/.trashcan and checks the last access time which is usually set by can(1). Anything that it finds that is more than seven days old it permanently removes via rm(1). This amount of time can be changed by changing the "7" in the script file. The best thing to do is to put this in your root crontab file and have it executed everyday.  

FILES

$HOME/.trashcan
The reservoir of canned files
 

SEE ALSO

can(1), rm(1)  

BUGS

Only that this was a quicky and could be made better by having it accept an argument that would determine the amount of elapsed time to check for.  

AUTHOR

The Bit Butcher
With the help of Steph Luse.


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 07:13:33 GMT, December 12, 2024