View Single Post
  #4   (View Single Post)  
Old 21st April 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,503
Default

I haven't used Linux for a long time, but doesn't crontab -e allow you to add a task to your personal cron table?.

For an automatic pruning after 48 hours you could use the find command. The following shows a listing of all files in my home dir older then file 48 hours
Code:
$ find /home/j65nko/ -ctime 2  2 -exec ls {} \;
Change the ls to rm -f and you have your auto-prune command
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote