Untitled
unknown
powershell
3 years ago
289 B
9
Indexable
#!/bin/sh
loggedInUser=$( ls -l /dev/console | awk '{print $3}' )
Status=$( sudo -u $loggedInUser launchctl list | grep com.apple.RemoteDesktop.agent | awk '{ print $1 }')
echo $Status
if [[ $Status == "-" ]] ; then
echo "<result>Off</result>"
else
echo "<result>On</result>"
fiEditor is loading...