• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
HP Recommended
HP T540 Thin Client
Linux

So, I am trying to use the built in script for the HP Device Manager to see who is currently logged in to freeRDP on their HP T540 Thin Client. The script that I used was:

 

#!/bin/bash
getUsername="mclient --quiet get tmp/hptc-login/loginUsername"

#get user name.
LoginUser=`$getUsername 2> /dev/null`
if [ -n "$LoginUser" ]
then
echo value=$LoginUser
else
echo "Get login user failed."
fi

 

However, it is returning an error of: Invalid file. Get login user failed. The script output is not valid. The expected format is value=data.

 

The thing is, I do have it set to value = data, so I'm not quite sure why it doesn't like what I'm doing. Any help or advice would be greatly appreciated.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.