We're running SRSS4.1 with kiosk sessions and cards, the type of kiosk session being selected from the card token.
When a kiosk session runs, SUN_SUNRAY_TOKEN is set to something like
user.1231424265-2914. I'd like to tie that back to the DTU that the
session is on, plus the card that is inserted.
Currently, the best I can do is to get the card token into $CARD_TOKEN
from:
utuser -p $SUN_SUNRAY_TOKEN | tail -2 | awk '/./ {print $1}'
or:
utwho -c | awk "/$SUN_SUNRAY_TOKEN/ {print \$5}" | sed s/P*./pseudo/
which I'm going to assume isn't all that safe, then go back through:
utdesktop -lc | awk "/$CARD_TOKEN/ {print \$1}"
for the desktop id.
None of the other ways that I've seen (abuse of UTDEVROOT, "utuser -p
$SUN_SUNRAY_TOKEN", etc.) seem to work.
Did I miss something, or is this just the only way now?
Cheers,
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
pgpMpmBxQm4uN.pgp
Description: PGP signature
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
