James, It's possible you're referring to this article: http://blogs.sun.com/ThinkThin/entry/turbo_cam about making CAM (Kiosk) more efficient.
As mentioned in the lower comments, it's generally (of course) a better idea not to tax the SR system unnecessary. Although I lack real metrics, I'm pretty sure doing two seds on a single query is much more efficient than querying & parsing & dropping & reparsing, in our case, 3500 lines ;-) But as mentioned, it's thoroughly possible that your mileage varies, and you're actually better off dumping them all. However, especially after the tweaks given in the article, and since we usually make sure we're on decently sized hardware, we've never had any real issues with utauthd responding slow. If you look at most of the stuff out there you might notice that these commands are very excessively used, usually to find information that should already be available. So rather than trying to work around calling utauthd too much and instead swamping the RAM with lines to filter over and over again, the scripting framework we use is very very careful to only call utuser -p only once per session, and utdesktop -p once per session connect. It doesn't look particularly pretty IMHO though, e.g.: thisUser=$(utuser -p $SUN_SUNRAY_TOKEN) thisUserOtherInfo=$(echo "$thisUser" | sed '/[ ]*Other Info[ ]*= /!d;s/[ ]*Other Info[ ]*= //') thisUserUserName=$(echo "$thisUser" | sed '/[ ]*User Name[ ]*= /!d;s/[ ]*User Name[ ]*= //') This is slightly modified, so I'm not 100% sure it's a working example, but you get the idea ;-) In case you're wondering: I'm a sed junk an this is pretty much the only way I know that's been cross-platform and dependable enough, and 'rather' efficient in number of executables and number of statements. But, it'd be sweet to have a csv-option for the -p's in utuser and utdesktop. SRSS5? Greetz Ronald 2009/7/10 James Tan <[email protected]> > Hi everyone, > > I saw a reading somewhere before on utuser -o vs -p but I can't seemed to > find it. Anyone know the virtue if I utuser -o then perform grep/nawk...etc > or should I utuser -p then do the rests? > > thanks, > James > > _______________________________________________ > SunRay-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/sunray-users > >
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
