Linked Questions

0 votes
0 answers
186 views

it's me again! xD I was wondering around some forums trying to find an answer to yesterday's question... And well i added the LAST 4 LINES OF CODE code to mine and i realised it kinda worked, the only ...
Manuel Pozzoni's user avatar
51 votes
8 answers
49k views

I have written a script that will keep itself up to date by downloading the latest version from a website and overwriting the running script. I am not sure what the best way to restart the script ...
Ashy's user avatar
  • 2,072
30 votes
6 answers
152k views

How do you make a python program automatically restart itself? So let's say there is a really simple program like: var = input("Hi! I like cheese! Do you like cheese?").lower() if var == &...
DavidEclipse's user avatar
10 votes
7 answers
30k views

I have a python script that will be running that basically collects data and inserts it into a database based on the last time the database was updated. Basically, i want this script to keep running ...
user2146933's user avatar
6 votes
2 answers
13k views

I run a Python Discord bot. I import some modules and have some events. Now and then, it seems like the script gets killed for some unknown reason. Maybe because of an error/exception or some ...
dan's user avatar
  • 3,519
2 votes
3 answers
8k views

I bought a Pi 3 B+ and would like to have it auto clone/deploy new pushes (from a different machine) from a private github repo. I was just wondering how I would do that. I know I need a github web ...
briyoon's user avatar
  • 75
5 votes
1 answer
2k views

I have a program that will run 24/7 getting frames from a camera, doing processing and sending .jpg images via local network. Generally, I don't want any saving of video to file, however I might want ...
Matias Andina's user avatar
0 votes
2 answers
3k views

After a run, the user is asked whether he wants to end the programme [with sys.exit()] or restart it [os.system('main.py')]. If he restarts the programme, the programme will run through until he can ...
JueK3y's user avatar
  • 337
-1 votes
1 answer
3k views

I have this python selenium script that after few minutes always throws some kind of error. Usually because chrome runs out of memory or there is some problem with proxy, but other errors also so its ...
user3281831's user avatar
0 votes
2 answers
2k views

I have a Python code running on Spyder on our server which needs to run constantly. However, from time to time our server breaks and it is restarted. Unfortunately, my code stops running as well and I ...
Data_Science_110's user avatar
1 vote
2 answers
1k views

Got a Django app that has users going through a setup wizard. After the wizard, the app needs to restart for it to pick the necessary settings. The app is run on Ubuntu 18.04 and monitored using ...
lukik's user avatar
  • 4,090
1 vote
1 answer
606 views

Running the code below associated with the answer of @s3ni0r here using python 3.8 import os import sys import psutil import logging def restart_program(): """Restarts the current ...
user avatar
1 vote
0 answers
420 views

I'm running: python 3.7.9 (64-bit) pythonnet 2.4.0 ... and I have the following problem: I have a bunch of DLL:s, all of which implement the same interface. I want to load them, run some code and ...
Anton Lahti's user avatar
0 votes
1 answer
395 views

I have a long running python script that runs on a remote machine. I'd like to have it check if it is running in a screen session and restart itself in an attached one if not. That way I will still ...
carmiac's user avatar
  • 369
0 votes
1 answer
288 views

I've an infinite while loop which fetches some data and writes it to a csv. Sometimes due to random reason, most likely because of memory shortage, the script gets stuck. So I've tried to restart the ...
Frash's user avatar
  • 738

15 30 50 per page