trashbin- version 1

This program was an attempt on my part to end my seemingly endless stupidity
of deleting files.  I always realize I should have kept something two days 
too late.  Anyway, this is a very simple program that I have found to be a 
tremendous aid in salvaging peace of mind.

Linux/Unix has always had a full-proof scheme when it comes to deleting
files-- if you want it gone, then it is gone.  Make no mistake, it is REALLY
gone.  Sure you can turn on the interactive mode of rm, but once you say yes,
you have the same outcome.  I have not found any commands or programs that
offer what I was looking for, not without a change of window manager or 
filemanager only for it's file saving feature.  
------------------------------------------------------------------------------
FEATURES:
File Compression before trashing (using gzip).
Removal of single or multiple files at once.
Since it is simply a new command, it can be used to alias the rm command
Automatically sets file permissions so only the owner of the file may
      do anything with the file, once it has been sent to trash.


EXECUTION:
This program works like any other command.  Type the name of your newly named
command followed by any files you want deleted, including wildcard characters, 
and you can rest easy that you can still get them back.
For example:

	trash README trash.c install_me  
		   or
	trash *

both do the same thing-- all files entered on the command line are compressed 
and sent to your trash directory.  Doesn't get much simpler. If you 
inadvertently made a mistake and you haven't yet cleaned out your trash, go 
back, find the file (with an added ".gz" extension), uncompress the file 
(gzip -d filename) and go back to work.


INSTALLATION NOTES:
This program was written in C for maximum execution as well as convenience.
If you do not have a C compiler, then you're out of luck I guess-- should've 
gotten that Linux OS afterall.  

Steps
  1)  If you are not root, you may wish to make some changes to the
      install_me script.  The directory permissions allow anybody access 
      to the trash directory (anybody can use the new command and trashbin), 
      but the program defaults to setting file permissions to allow file 
      access only to the owner of the file (nobody else can read it) -- for
      security reasons.  I recommend looking at it anyway. 

  2)  Make any changes you wish for your particular setup.  The defaults
      should work just fine unless you don't want a command named "trash"
      and/or a directory name "trash" at the root of your file system.

  3)  If you made any changes to the directory name you have chosen as your 
      trash bin, you need to edit the trash.c file and make a change there 
      also ( char* TRASH_DIR = "/new_directory_name/"; ). 

  4)  Run the install_me script, and rest easy!!

 
FINAL NOTES:
As I have mentioned, this is not a very complicated program so modifications 
to the source code are certainly recommended if you desire.  It was simply 
a little thing I threw together for personal use, personal NEED is more like
it, and if anybody else gets any use out of it-- that's fine by me.  

I have not provided for any automatic permanent removal of your trash. I 
recommend setting up a cron job or some other means of checking files once 
in a while.  With few users, it isn't really a big concern, but things can
unexpectedly fill the trashbin very rapidly. Maybe my next little project 
will be just that-- a program to remove files after a certain length of 
time-- seems I've heard of one of those already. More modifications and 
features will be added when time permits, any suggestions are welcome.
Good luck always push for the free software concept.
Thankyou for trying this program!


I would appreciate any comments or suggestions:
	Michael Ernst
	ernie@inetnebr.com
