<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:'Helvetica Neue',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 & 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,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">$launchctl list com.mycompany.myAgent</code> & <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',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's LastExitStatus. Everything works fine when I'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'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,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',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>