Skip to main content

All Questions

1 vote
2 answers
806 views

How to start a screen with crontab

sudo Crontab -e 15 0 * * 1-5 /usr/bin/screen -S wake_up -d -m /home/pi/auto/wake_up.py But at 00:15 there is no screen started... This command: (worked in terminal) screen -S wake_up -d -m /home/pi/...
JOC0N's user avatar
  • 13
2 votes
2 answers
320 views

Shell script to autostart script

I would like to refer to my previous post here: Autostarting a python script whenever it crashes to restart two python scripts on my raspberry pi (Stretch OS) if they crash. The code of the shell ...
Craver2000's user avatar
0 votes
2 answers
1k views

Preventing multiple python scripts from crashing with single shell script?

I would like to create a shell script to prevent a python script from crashing in a Raspberry Pi. This python script is auto started on reboot with cron, however, sometimes it can crash while running. ...
Craver2000's user avatar
0 votes
2 answers
6k views

Autostarting a python script whenever it crashes

I am trying to autostart a python script everytime it crashes on my raspberry pi. I am adhering to the shell script solution offered here: https://raspberrypi.stackexchange.com/questions/14735/how-do-...
Craver2000's user avatar
2 votes
1 answer
4k views

Cron calling a shell script that calls a python script [RPi3]

I am trying to repeatedly execute python script(s) using Cron. I have written a shell script that calls that/these python script(s). I have made the shell script as an executable and works perfect ...
Gytis Bernotas's user avatar
4 votes
1 answer
2k views

How Can I Automate the Change between a Python Script and a Nohup Python Script?

I have a Raspberry Pi connected to a digital temperature probe, which measures my fermenting beer. A python script reads the temperature every second and prints it to the console, and stores it in a ...
Matthew Moisen's user avatar