How to run python script on startup with sudo permission on Mac OSProblem with running a script at startup as...
Play Zip, Zap, Zop
What's a good word to describe a public place that looks like it wouldn't be rough?
What would be the rarity of this magic item(s)?
Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?
Can I make estimated tax payments instead of withholding from my paycheck?
Quickly creating a sparse array
Is using an 'empty' metaphor considered bad style?
Use two 8s and two 3s to make the number 24
Increasing the flow in descriptions of a sequence of events
Why is it that Bernie Sanders is always called a "socialist"?
Am I a Rude Number?
How to tell if a BJT is PNP or NPN by looking at the circuit?
Why am I able to open Wireshark in macOS without root privileges?
Why is Agricola named as such?
False written accusations not made public - is there law to cover this?
using 'echo' & 'printf' in bash function calls
Is there a feather fall weight limit?
Do authors have to be politically correct in article-writing?
What are "industrial chops"?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
How can I get my players to come to the game session after agreeing to a date?
Citing paywalled articles accessed via illegal web sharing
Why are the books in the Game of Thrones citadel library shelved spine inwards?
What is the data structure of $@ in shell?
How to run python script on startup with sudo permission on Mac OS
Problem with running a script at startup as root?How can I write a startup script for OSX?Permission Denied running python script from samba shareHow can I run a Python 3 script?Autorun a python with sudo at startupRun `sudo` command at startup/bootup on Mac OS XRun python program on startup in background on Intel GalileoCustom script run with sudo - command not foundsudo python vs pythonRunning a bash script with sudo privilege
I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.
So the question is, How do you run the script on startup with sudo permission
mac script boot python sudo
bumped to the homepage by Community♦ 24 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.
So the question is, How do you run the script on startup with sudo permission
mac script boot python sudo
bumped to the homepage by Community♦ 24 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.
So the question is, How do you run the script on startup with sudo permission
mac script boot python sudo
I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.
So the question is, How do you run the script on startup with sudo permission
mac script boot python sudo
mac script boot python sudo
asked Feb 19 '12 at 5:29
StevenSteven
62
62
bumped to the homepage by Community♦ 24 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 24 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).
What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f391548%2fhow-to-run-python-script-on-startup-with-sudo-permission-on-mac-os%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).
What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.
add a comment |
Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).
What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.
add a comment |
Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).
What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.
Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).
What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.
edited Feb 19 '12 at 5:52
answered Feb 19 '12 at 5:44
lupincholupincho
1,5551322
1,5551322
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f391548%2fhow-to-run-python-script-on-startup-with-sudo-permission-on-mac-os%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown