How do i run an interactive python script 24/7 on a windows server?Run Python Server at StartupRun python...
How to speed up a process
What is this waxed root vegetable?
Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
What am I? I am in theaters and computer programs
How to count words in a line
What's the difference between a cart and a wagon?
What is better: yes / no radio, or simple checkbox?
Why does Starman/Roadster have radial acceleration?
Do authors have to be politically correct in article-writing?
Use comma instead of & in table
Can chords be played on the flute?
Compare four integers, return word based on maximum
How to approximate rolls for potions of healing using only d6's?
Six real numbers so that product of any five is the sixth one
Understanding Kramnik's play in game 1 of Candidates 2018
How can I handle a player who pre-plans arguments about my rulings on RAW?
How to count occurrences of Friday 13th
How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider
Linear regression when Y is bounded and discrete
Does music exist in Panem? And if so, what kinds of music?
If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?
A "strange" unit radio astronomy
When should a commit not be version tagged?
How do i run an interactive python script 24/7 on a windows server?
Run Python Server at StartupRun python script automatically on apache serverPython CGI on Amazon AWS EC2 micro-instance — a how-to!/bin/sh - non interactive usage from PythonDaemontools to run a python scriptHow to run a python script on a server 24/7?Systemd : Run a Python Script At Startup (virtualenv)Automation script won't work if no one is connected to a Windows VPSHow to run a python script remotely via SSH on a Windows machineWhich AMI for remote graphics processing on Windows?
The script needs to be started manually from a virtual desktop connection and then let it work 24/7. The problem is that when i close the remote desktop connection the script stops. As long as my script interacts with a browser window in the virtual desktop i cant run the script as a windows service.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon
amazon-web-services vps python remote
New contributor
add a comment |
The script needs to be started manually from a virtual desktop connection and then let it work 24/7. The problem is that when i close the remote desktop connection the script stops. As long as my script interacts with a browser window in the virtual desktop i cant run the script as a windows service.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon
amazon-web-services vps python remote
New contributor
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37
add a comment |
The script needs to be started manually from a virtual desktop connection and then let it work 24/7. The problem is that when i close the remote desktop connection the script stops. As long as my script interacts with a browser window in the virtual desktop i cant run the script as a windows service.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon
amazon-web-services vps python remote
New contributor
The script needs to be started manually from a virtual desktop connection and then let it work 24/7. The problem is that when i close the remote desktop connection the script stops. As long as my script interacts with a browser window in the virtual desktop i cant run the script as a windows service.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon
amazon-web-services vps python remote
amazon-web-services vps python remote
New contributor
New contributor
New contributor
asked Feb 27 at 18:53
GenrrarelloGenrrarello
61
61
New contributor
New contributor
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37
add a comment |
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37
add a comment |
1 Answer
1
active
oldest
votes
You most likely need to create a Windows service running as an SYSTEM_.* type user.You can do this with sc command:
https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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
});
}
});
Genrrarello is a new contributor. Be nice, and check out our Code of Conduct.
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%2fserverfault.com%2fquestions%2f956022%2fhow-do-i-run-an-interactive-python-script-24-7-on-a-windows-server%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
You most likely need to create a Windows service running as an SYSTEM_.* type user.You can do this with sc command:
https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe
New contributor
add a comment |
You most likely need to create a Windows service running as an SYSTEM_.* type user.You can do this with sc command:
https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe
New contributor
add a comment |
You most likely need to create a Windows service running as an SYSTEM_.* type user.You can do this with sc command:
https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe
New contributor
You most likely need to create a Windows service running as an SYSTEM_.* type user.You can do this with sc command:
https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe
New contributor
New contributor
answered 6 hours ago
David O.David O.
111
111
New contributor
New contributor
add a comment |
add a comment |
Genrrarello is a new contributor. Be nice, and check out our Code of Conduct.
Genrrarello is a new contributor. Be nice, and check out our Code of Conduct.
Genrrarello is a new contributor. Be nice, and check out our Code of Conduct.
Genrrarello is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f956022%2fhow-do-i-run-an-interactive-python-script-24-7-on-a-windows-server%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
Does it absolutely need to run on Windows, or talk to a browser?
– Michael Hampton♦
Feb 27 at 19:23
Not necessarily on windows, but it interacts with the browser
– Genrrarello
Feb 27 at 19:37