Thread View: comp.sys.next.sysadmin
1 messages
1 total messages
Started by Rob Francis
Tue, 29 Dec 1992 04:14
Upgrade_3.0.app/Default.upgrade/PostProcess has a problem
Author: Rob Francis
Date: Tue, 29 Dec 1992 04:14
Date: Tue, 29 Dec 1992 04:14
33 lines
1789 bytes
1789 bytes
There's this little snippit in the script that runs after the upgrade
to update the /users directory in Netinfo:
echo -n " Updating user accounts..."
set users = `niutil -t -list localhost/${usetag} /users|awk '{print $2}'`
foreach user ($users)
niutil -t -list localhost/${usetag} /users/${user}/info >& /dev/null
if ($status != 0) then
niutil -t -create localhost/${usetag} /users/${user}/info
niutil -t -createprop localhost/${usetag} /users/${user}/info _writers ${user}
endif
end
echo "$#users accounts"
Basically, it just adds the info property to each user's directory.
But there's a problem. My Upgrade Log showed the following:
Updating user accounts...foreach: Too many arguments.
I have 1167 accounts. I haven't figured out what the cut off is, but
I did manage to make it work by commenting that out of the script and
running something that did the same thing using /bin/sh and a while
loop. Then commenting it out of the script and rerunning the script
by hand.
So I'm not sure where the cut off is, but thought others might want to
know about this little treat.
-rob
---
Rob Francis Unix Systems Specialist, Indiana University
francisr@indiana.edu (812)855-0327
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads