<div dir="ltr"><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;font-size:15px;width:660px;word-wrap:break-word;line-height:1.3;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif"><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">I have an launchd User Agent with label com.mycompany.myAgent &amp; a launchd daemon with label com.mycompany.myDaemon. I use the command <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">$launchctl list com.mycompany.myAgent</code> &amp; <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">$sudo launchctl list com.mycompany.myDaemon</code> to view the PID of my job and it&#39;s LastExitStatus. Everything works fine when I&#39;m logged in as a standard/admin user.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">When I login as root (System Administrator) although, I do not get the status of my agent. I can see my agent&#39;s executable running in the Activity Monitor app but <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">$launchctl list</code> does not show my agent.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">Is there a way I can query my agent when logged in as root?</p></div>
</div>