Can any one provide shell script for this ...

� With this script, users will be able to
o Enter into the recycle bin mode. During this mode, all files deleted will be sent to the recycle bin. The recycle bin will be common to all users.
o View contents of the recycle bin (his/her file(s) only).
o Retrieve a particular file from the recycle bin (his/her file(s) only). .
o Delete contents of the recycle bin (his/her file(s) only).
o A super user should be able to view, retrieve and delete files of any user. When the super user performs an action on a file that does not belong to him/her, a mail confirmation should be sent to the user, which states the files operated on and the action performed by the super user on them.
o Permanently delete files also (i.e., NOT send the file to the recycle bin).
o Periodically dump the contents of the recycle bin. (The period can be user defined.)
o After each periodic purge, mails will be sent to all users whose files were permanently removed from the recycle bin.
o Exit the recycle bin mode. During this mode, all files deleted will NOT be sent to the recycle bin.

It is rather hard to rewrite parts of the kernel from a shell script.

Is this a homework assignment?

yes it is assignment for me...

---------- Post updated at 07:18 AM ---------- Previous update was at 07:17 AM ----------

just now started learning unix so please help in creating script

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the guidelines for posting homework and repost.

This thread is closed.