You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> <displayName>Total Time of User Login</displayName> <displayInCategory>User Information</displayInCategory> <description>This attribute displays the current total time logged in of the current user. This attribute applies only to Mac.</description> <dataType>string</dataType> <scriptContentsMac>#!/bin/shcurrentUser=`ls -l /dev/console | awk {' print $3 '}`userLoginTime=`ac -p | grep "$currentUser" | awk {' print $2 '} | cut -d . -f 1`totalTimeInDays=`echo "scale=2 ; $userLoginTime/24" | bc`echo "<result>Login time in hours for $currentUser is $userLoginTime Login time in days for $currentUser is $totalTimeInDays </result>" </scriptContentsMac></extensionAttribute>