Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
MacOS shutdown hook
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1770084" data-attributes="member: 110816"><p>You can modify the script to have the startup() function just to the wait since you want the script to hang around. With that, you only need the sudo for Launchctl once to add it to to the list of scripts/functions/applications that will be loaded for each user automatically. When the script is killed, it will not need nor get sudo access, you will want to use a log file location that is accessible to that user.</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1770084, member: 110816"] You can modify the script to have the startup() function just to the wait since you want the script to hang around. With that, you only need the sudo for Launchctl once to add it to to the list of scripts/functions/applications that will be loaded for each user automatically. When the script is killed, it will not need nor get sudo access, you will want to use a log file location that is accessible to that user. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
MacOS shutdown hook
Top