Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!CONCOUR.CS.CONCORDIA.CA!goldfish From: goldfish@CONCOUR.CS.CONCORDIA.CA Newsgroups: comp.sys.apollo Subject: Re: reducing the delay between edrgy and getpwuid() etc ... Message-ID: <9102210942.aa20303@concour.cs.concordia.ca> Date: 21 Feb 91 14:41:56 GMT References: <1991Feb20.211014.5823@bwdls61.bnr.ca> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 33 I have a small program which interrogates the registry with the "getpwent" system call and formats the output in a variety of ways. If anyone is interested send me a message (By E-Mail, not by posting) I will shar it and send it to you. If there is sufficient interest, I will post the shar file. (What is the policy on posting complete sources here anyway?) The program syntax is soemthing like: userinfo [-all] [-version] [-pw alt.passwd.file] [-f tokenized%format%string] [-c] user1 - user2 ... -all print all users -pw select alternate password file -version display version number -f select alt format (uses "\"and "%" style tokens) -c supress warning messages - read user names from "stdin" user1 ... list of names to print useage: userinfo root will print: root:f7y7jJ9AUCl8:0:10:Apollo System,Account:/.:/bin/ksh Useful for accessing the registry as a password file, and virtually eliminates unreadable invocations of AWK, SED, GREP in my admin scripts. -- Paul Goldsmith (514) 848-3031 (Shirley Maclaine told me there would be LIFETIMES like this) Brought to you by Super Global Mega Corp .com