The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
perl program question hankooknara Shell Programming and Scripting 4 07-05-2007 11:01 AM
question on change of mount point karthikosu UNIX for Dummies Questions & Answers 2 03-20-2007 06:19 PM
script/program to change the password ? kad Shell Programming and Scripting 0 06-01-2006 07:02 AM
UNIX Backup program question MayDHorseBwithU UNIX for Dummies Questions & Answers 1 11-06-2005 06:45 AM
QUESTION...simple program? jj1814 High Level Programming 8 02-07-2002 01:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-22-2005
mpp122 mpp122 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 1
UNIX Program Change Question

I am an IT auditor with a big 4 accounting firm and am cur the process of conducting an application program change audit for a large public company related to Sarbanes Oxley. This is my first time using this forum and need some assistance in verifying a fact that I believe to be true.

My client has a number of applications that are running on a UNIX platform, both AIX and Solaris, in which application changes are being programed and moved into production during the entire year under review. Part of our testing process is to obtain a listing of changes that were migrated into production affecting an application during the year under review. Typically, we begin our testing by obtaining a listing of modules and scripts that were migrated into production during the period under review from a program change migration tool. In this particualr instance, the client is using PVCS for version control associated with application changes, but does not have a program change migration tool in place; therefore, we have no way of obtaining a full population of application changes that were migrated into production during the period under review.

I am under the impression that a report can be obtained from the OS (UNIX) that is specific to a particular directory where the production region of an application resides that will show all modules or program changes that were migrated into that region that affected the application during the period under review. If this is the case, can anyone provide me with some guidance as to how I should request this from the client? Specifically, what report to obtain or what script can be run?
  #2 (permalink)  
Old 12-22-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Try something like this:
Code:
#! /usr/bin/ksh

#      yyyymmddhhmm.ss
pstart=200510312359.59
  pend=200511302359.59

fpstart=/tmp/pstart_$$
fpend=/tmp/pend_$$


touch -t $pstart $fpstart
touch -t $pend $fpend

cd /some/directory
echo List of files in $PWD $pstart $pend
find . ! -name . -prune -newer $fpstart ! -newer $fpend -type f | sed 's/^\.\///' | xargs ls -ld
echo End of List of files in $PWD $pstart $pend
rm $fpstart $fpend
exit 0
This will find files whose modification time is between the two timestamps. pstart is the last second before the period of interest, while pend is the last second of the period of interest. The sequence "! -name . -prune" will prevent the "find" command from desending into subdirectories to search for files. Remove that sequence if you want to search the entire directory heirarchy. The output from "find" will be stuiff like "./filename" but the sed statement removes that leading "./" for a nicer look.

Bear in mind that anyone can change the mod time of a file to anything by using the "touch" command just like this script does.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0