I use the -o option of either utuser or utdesktop and | that to cut -d,
-f3 instead of awk. I use the Other Information field and sometimes even
parse other information out of that field with commas and just use -f4
etc... I use echo "Default $LPDEST\n" > $HOME/.lpoptions to set the
default printer for that DTU for CAM or user sessions.
Jason Winningham wrote:
On Jun 15, 2007, at 10:14 AM, Trevor Dell wrote:
Was I reading correctly and Jason wants to get the MAC address from a
unit?
close, I really want the location field from srds.
/opt/SUNWut/sbin/utuser -p $SUN_SUNRAY_TOKEN | grep 'Current Desktop'
| awk '{print $4}'
That works, and even better
/opt/SUNWut/sbin/utuser -p $SUN_SUNRAY_TOKEN | grep 'Desktop Location'
| awk '{print $4}'
gets me exactly what I wanted to know to begin with. This method
works with cards and self registered DTUs, too.
thanks!
-Jason
----------------------------------------
Jason Winningham
Computer Systems Engineer
College of Engineering
The University of Alabama in Huntsville
http://support.eng.uah.edu/ http://www.eng.uah.edu/~jdw
_______________________________________________
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