Expanded Description
| Topic |
Description |
| Name |
totals4gaz |
| Synopsis |
/infobank/programs/gaz/gazboothill/totals4gaz/totals4gaz.for |
| Description |
Program to compare older .total files to newer .total_temp files.
|
| NOTES |
Expects existing directory structure from GETTOTALS4GAZ
Typical execution time = ?
|
| AUTHOR |
Clint Steele 7/25/2000
|
| Reads |
read (90, '(a29,t30,q,a)', end = 99)
* TypeName,
* FullLength, FullPath(1:FullLength)
read (89, '(i4)', end=800) TotalSize
read (89, '(i4)', end=802) TempSize
read (92, '(q,a)', end = 98)
* TestLength, TestPath(1:TestLength)
|
| Writes |
write (StatusFlag, '(9x)')
write (TypeName, '(255x)')
write (91, '(a,t10,a)')
* StatusFlag(1:StatusLength),
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total'
|
| Opens |
open (unit = 90,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = '/infobank/programs/keep/types4gaz.keep')
open (unit = 91,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = '/infobank/programs/keep/total4gazstatus.keep')
open (unit = 89,
* access = 'sequential',
* form = 'formatted',
* status = 'old',
* name = '/tmp/totals4gaz.size.temp')
open (unit = 89,
* access = 'sequential',
* form = 'formatted',
* status = 'old',
* name = '/tmp/totals4gaz.size.temp')
open (unit = 92,
* name = '/tmp/totals4gazcmp.temp',
* status = 'unknown',
* form = 'formatted',
* access = 'sequential')
|
| Calls |
call stringlen (TypeName(1:29), TypeLength)
call system ('/bin/ls -s '//FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total >
* '/tmp/totals4gaz.size.temp')
call system ('/bin/cat /tmp/totals4gaz.size.temp')
call system ('/bin/ls -s '//FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total_temp >
* '/tmp/totals4gaz.size.temp')
call system ('/bin/cat /tmp/totals4gaz.size.temp')
call system ('/bin/cmp'//
* ' '//FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total'//
* ' '//FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total_temp'//
* ' > /tmp/totals4gazcmp.tem
call system ('/bin/mv '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total_temp'//' '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total')
call system ('/bin/rm '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total_temp')
call system ('/bin/mv '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total_temp'//' '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total')
call system ('/bin/rm '//
* FullPath(1:FullLength)//'/'//
* TypeName(1:TypeLength)//'.total')
call stringlen (StatusFlag, StatusLength)
|
|