MacNN Forums (
-   macOS (
-   -   LaunchAgent Trouble (

l008com Jan 29, 2013 03:47 AM
LaunchAgent Trouble
I'm trying to make a LaunchAgent that runs a script every 10 seconds. It works well, but it ONLY works when I'm logged in. If the computer boots up and is handing out at the login screen, the script won't run.

This is currently in /System/Library/LaunchAgents/ but it still only runs when I'm logged in:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

l008com Jan 29, 2013 04:12 AM
So I read that what I want is LaunchDaemons not LaunchAgents. So I moved my script from /System/Library/LanuchAgents/ to

Still nothing though. In fact, in there, it doesn't even when when I'm logged in.
l008com Jan 29, 2013 05:43 AM
So apparently, LaunchDaemons need a specific set of permission else they won't run. I corrected that nd now things seem to be running properly!
All times are GMT -4. The time now is 07:19 AM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

Content Relevant URLs by vBSEO 3.3.2