We recently created a UNIX script to loop through a list of UniVerse
account paths (any account that has a VOC file) and then let the script
loop through them. Still requires manual input, which I wanted, to verify
each account prior to updating. It works pretty quick.
First ran this command to build a file of paths:
find ./ -name VOC -print > /script_path/UpdateVOCPaths
I edited this file and removed the /VOC from the end of each line so the
path has just the account name. There's probably a better way to refine the
find command to strip out the /VOC part of the output, but this got the job
done.
I then use a UNIX script (called mine UpdateVOCFiles):
clear
echo "Starting update of UniVerse accounts to 11.1.4"
> /script_path/UpdateVOCLog
for i in $(cat /script_path/UpdateVOCPaths)
do
echo " " >> /script_path/UpdateVOCLog
echo "Updating Account: $i"
echo "Updating Account: $i" >> /script_path/UpdateVOCLog
cd $i
/u1/uv/bin/uv (path of your uv installation)
done
Again, I set it up to have to answer 'Y' that I wanted to update each
account.
Gary P. Canedy
Senior Database Analyst
P: 617.757.6775
F: 617.428.9803
[email protected]
(Embedded image moved to file: pic25102.jpg)
101 Arch Street, 4th Floor
Boston, MA 02110
www.coverys.com
Toll Free: 800.225.6168
From: John Thompson <[email protected]>
To: U2 Users List <[email protected]>
Date: 01/30/2012 02:18 PM
Subject: [U2] Update the VOC after upgrade?
Sent by: [email protected]
Anyone know of a way to NOT have to login to every account I have to update
the VOC after a Universe upgrade?
For example, I would like to run something from TCL, or from unix/linux
that I could make loop through the UV.ACCOUNTS file and update the VOC's.
Any ideas?
--
John Thompson
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. If you received this email in error, please contact the
sender immediately and delete this email from your system. If you are not the
named addressee, you should not disseminate, distribute, print, or copy the
email, or take any action in reliance on its contents.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users