UNIX Program Change Question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers UNIX Program Change Question
# 1  
Old 12-22-2005
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  
Old 12-22-2005
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question regarding whence program

Hi all, In production code, if using the whence command it picks the production file.if I am using the test code file. by using whence command it not picking the file. do you have any idea on this. Whence prodcode it picks the exact path of the prodcode. whence testcode. it... (1 Reply)
Discussion started by: ramkumar15
1 Replies

2. Programming

Cash Register Change Program

I just need some suggestions on how to start this program I wanted to work on for practice. I want to make a cash register program that gives change and only works with $1's, $5's, $10's, and $20's (I might add cents in later for more practice). Change should always be made with the largest... (9 Replies)
Discussion started by: totoro125
9 Replies

3. Programming

Question regarding Bash program

Hello All, I am trying to write a small bash script to make my life easier for an analysis. I have multiple folders and inside them are 10 output files with an extension .pdbqt What I am trying to do is to read the folder content and then make a PyMol (.pml) file to load the molecules and then... (11 Replies)
Discussion started by: biochemist
11 Replies

4. UNIX for Dummies Questions & Answers

Change to different user id inside a program

Hi, There is a process ( built in C/C++) which starts with my user id and I need to execute a specific function with a different user id. Is there any api so that I provide userid, passwd and the next instance the process will have the new user id privileges. - Pranav (3 Replies)
Discussion started by: k_pranava
3 Replies

5. Debian

Change the privileges needed to run a program

Hi everyone, I have an issue with a project of mine. I have to run a program on a terminal which requires to be logged in as su to have it run it. Given that I'm having problem to use expect to give the password I'd like to change the privilege of that program from SU to normal user ( I have the SU... (13 Replies)
Discussion started by: gaisselick87
13 Replies

6. Programming

Change Pseudo Code to C Program (print and fork)

I am very new at programming and this is probably an easy question, but I am desperate. I need to change this low level code into a C program that I can run so I can print out every "A" that appears with the fork() command. You help is greatly appreciated. PRINT A p=fork() if( p == 0) {... (0 Replies)
Discussion started by: tpommm
0 Replies

7. Shell Programming and Scripting

perl program question

why does below program not work? <> is producing nothing.. still waiting for input.. but i thought this would work? #!/usr/bin/perl -w use strict; my @array2; my @array1 = ("David Veterinarian 56", "Jackie Ass 34", "Karen Veterinarian 28"); $_ = @array1; while (<>) { ... (4 Replies)
Discussion started by: hankooknara
4 Replies

8. Shell Programming and Scripting

script/program to change the password ?

hi, Somebody have or known where i can find a perl small perl program to change the password. The point: First it verify is the user exist, checking the old typed password and replace it with new. The passwords must be encoded. Thanks, very much! (0 Replies)
Discussion started by: kad
0 Replies

9. UNIX for Dummies Questions & Answers

UNIX Backup program question

How do UNIX backup programs know which files to dump. Unlike Windows, UNIX files do not have the "archive" bit, yes? So, again, how does it know which file(s) to dump. Thanks in advance. (1 Reply)
Discussion started by: MayDHorseBwithU
1 Replies

10. Programming

QUESTION...simple program?

I am new to the unix/linux environment. AND........ I need to create a mini shell..that displays prompt (i.e., READY:$), accepts a command from std-in, and prints the command and any parameters passed to it. HELP!!!! (8 Replies)
Discussion started by: jj1814
8 Replies
Login or Register to Ask a Question