Skip to main content
Question

Collecting User Data

  • September 16, 2018
  • 1 reply
  • 2 views

Forum|alt.badge.img+3

Is there a way to prompt for users to enter some items like their username and room location? We've distributed computers to a number of people and want to ensure they're in the right spots. Thanks for any help.

1 reply

Forum|alt.badge.img+12
  • Valued Contributor
  • September 17, 2018

Ive used an attribute extension to find the current user, but as for location how would the computer know where it is? below is what i use to find the current user at check-in.

#!/bin/bash
user=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
echo "<result>$user</result>"