Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix Script Quest : Urgent

Re: Unix Script Quest : Urgent

From: Steven Lembark <lembark_at_wrkhors.com>
Date: Fri, 09 Aug 2002 07:33:21 -0800
Message-ID: <F001.004B07DD.20020809073321@fatcity.com>

> Is there a way to capture all files hit by a process/user in unix (Sun
> Solaris 9, ksh)? I am seeing an OCI file not found on my production box.
> I can't resovle it.
> So, I want to run the same process on my development box (where it works)
> and get a list of files that it is hitting (I can grep by username) for
> comparison in production. Only I am definitely NOT the Unix guru and as
> this is for a prod issue, so my time is very limited.
> Thanks in advance,

    touch BEFORE;
    ...
    find $wherever -newer ./BEFORE;

will give you a list of files that have changed since the BEFORE file. If you are sure that the files are being created (vs. modified or accessed) by one specific userid then:

    find / -newer BEFORE -user <id>

will work also.

If you are going to run the thing regularly then take a look at "find2p", which will spit out a perl script to match your find command. The perly code will give you finer control and better sanity checks (e.g., comparing to a list in memory of what has already been found to avoid dup's) than find can.

enjoi.

--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steven Lembark
  INET: lembark_at_wrkhors.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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 Fri Aug 09 2002 - 10:33:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US