alias MAYBE command Require Cedar WallTapestry WalnutUtils Date setproperty rootFileName ($(WalnutFile $1)) MAYBE CloseAll MAYBE walnut -n $rootFileName MAYBE Sleep 5 MAYBE Waitt setproperty rootDirectory ($(DirectoryOf $rootFileName)) setproperty logFileName ($rootDirectory$(WalnutFile $rootFileName log)) setproperty oldLog ($(FindTemp $logFileName)) setproperty dbFile ($(WalnutFile $rootFileName db)) setproperty dbDirectory ($(DirectoryOf $dbFile)) setproperty shortDB ($(ShortNameOf $dbFile)) MAYBE WCDetails off MAYBE Delete $logFileName.new* Echo Compacting Walnut Database $rootFileName to $logFileName.new MAYBE time WalnutCompact $rootFileName $logFileName.new Echo Pausing for ten seconds. The next procedures will disable or delete mail system files. Echo If any step beyond this point fails, seek assistance from Walnut Echo Support personnel. Echo Push STOP now to abort the scavenge. MAYBE Sleep 10 setproperty lbLog ($(WalnutFile $rootFileName lblog)) setproperty oldLbLog ($(FindTemp $lbLog)) MAYBE Rename $oldLog _ $logFileName MAYBE LBFlush ALL MAYBE Rename $oldLbLog _ $lbLog MAYBE Rename $logFileName _ $logFileName.new push $dbDirectory setproperty goesTo ">" MAYBE MakeEmptyLBLog $lbLog MAYBE LBBuildindices $shortDB pop MAYBE LBParam -cacheSize 15000 -cacheStretch 15000 -dateCompare on -caching on -writeCaching on Echo Scavenging $rootFileName MAYBE WalnutScavenge $rootFileName MAYBE Sleep 5 MAYBE Waitt MAYBE LBParam -cacheSize 2500 -cacheStretch 1000 -writeCaching off Echo Scavenge of $rootFileName complete at ($(date)). Previous log saved as $oldLog. Delete it whenever you feel comfortable doing so. MAYBE CloseAll  DoWalnutCompact Copyright Σ 1991, 1992 by Xerox Corporation. All rights reserved. Swinehart, March 15, 1992 5:06 pm PST Doug Terry, February 12, 1992 9:34 am PST Willie-s, April 27, 1992 2:22 pm PDT Change that to "echo" to test the script. MAYBE Delete *.lbindex MAYBE Delete $shortDB MAYBE LBCreate $shortDB Key MsgSet ShowIs $2 $3 $4 For now, leave user's DB specification alone, and just reinitialize it. Believe it or not, that puts a single termination character into the LB log file. MAYBE walnut $rootFileName Κc–(cedarcode) style•NewlineDelimiter ™™Jšœ Οeœ7™BJ™%J™)J™$J™—˜J™)—J˜&J˜J˜+Jšœ˜J˜J˜ Jšœ ˜ J˜8J˜GJ˜-J˜3J˜0J˜,J˜J˜J˜AJ˜7J˜\J˜EJ˜J˜)J˜J˜5J˜)J˜#J˜J˜J˜,J˜Jšœ™J™J• CharProps-SpellingToolUserLikesThisWordLBCreate$šœ2™2J™GJ˜šœ˜J™Q—Jšœ˜J˜Jšœ_˜_J˜Jšœ"˜"Jšœ ˜ Jšœ ˜ JšœB˜BJ˜ˆJšœ˜Jšœ™J˜—…—v χ