I will be doing some volume testing on an AIX computer. I would like to write a script, that will tell me the start and end times of a program. (I really only need the end time, I'll be starting the program, I'll know that time!)I need to write the script as a regular user, I won't have access to crontab. I'm thinking of something like this:
find the pnum of the program
while ps|grep pnum
do
date > lasttime
done
then, the lasttime file will contain the time just before the program ended.. am I figuring this our right? Any help would be appreciated,,
thanks
James
ps - Korn shell is the default
find the pnum of the program
while ps|grep pnum
do
date > lasttime
done
then, the lasttime file will contain the time just before the program ended.. am I figuring this our right? Any help would be appreciated,,
thanks
James
ps - Korn shell is the default