Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix problem
First, the syntax of the find command is the same as we run.
My concern is with the SCRPTDIR designation. You might want to remove the quote characters. To check if you need to, copy the find command line. Insert echo " at the beginning, change "abc_*.tsd" to be 'abc_*.tsd' then add a " at the end. Run the script and see what UNIX is actually trying to execute.
In all of my scripts, I leave the echo command in so I can track what is being processed or having problems.
-----Original Message-----
From: Dash, Saroj (CAP,CEF) [SMTP:Saroj.Dash_at_gecapital.com] Sent: Thursday, December 28, 2000 3:40 AM To: Multiple recipients of list ORACLE-L Subject: Unix problem
Hello Dbas,
Regarding unix I want to delete two days old files from a directory.
I am writing this scripts but it won`t working .Please tell me where is
the
problem.
I am adding this script please rectify it if any error.
SCRPTDIR= "/db/abc/xyz"
find ${SCRPTDIR}/log -name "abc_*.tsd" -ctime +2 -exec rm -f {} \;
Regards,
Saroj.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Dash, Saroj (CAP,CEF)
INET: Saroj.Dash_at_gecapital.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Dec 28 2000 - 08:12:41 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |