I am using Ubuntu 12.04 and I am here to know: is there any way to limit the life time of a file?
I mean, for example, I have created a file that has to be automatically deleted 10 minutes after I close it. Is there any way to do it?
|
I am using Ubuntu 12.04 and I am here to know: is there any way to limit the life time of a file? I mean, for example, I have created a file that has to be automatically deleted 10 minutes after I close it. Is there any way to do it? |
||||
|
|
|
This can be easily accomplished using
This will set up a watch on Here's a script to make things easier:
Call the script like this: |
||||
|
|
|
You need to write a script to perform this. Using the commands
Sample Script to remove the '.bak' file
Change the permission of the script (execute) add the script to |
|||