rm command script [message #464567] |
Thu, 08 July 2010 07:27 |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
Hi,
I am trying to write script for----
AS any one can delete any file at same the entry get added in log file
in that script i want only date of deletion file name and path
which script command need to use..????????
is that i need to modify standard rm command script..?
Thank You.
[Updated on: Thu, 08 July 2010 07:29] Report message to a moderator
|
|
|
|
|
Re: rm command script [message #464578 is a reply to message #464576] |
Thu, 08 July 2010 07:47 |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
i have my oracle application server on Linux and i want to write script as....
as any user or end user delete the record or any of file i want maintain the log file which contain the file deletion date and the path of the file which is going to delete...
Is for oracle application only....
|
|
|
|
|
Re: rm command script [message #464636 is a reply to message #464578] |
Thu, 08 July 2010 10:09 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
You can get some information easily and depending on how long it is stored in history. Other option is to have a wrapper around "rm" command, but talk to your sysadmin first.
root@kalyani:/var/log# cat ~magvivek/.bash_history | grep rm
rm *.lst
rm *.log
rm *.buf
rm test
|
|
|