Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7179

Troubleshooting • Re: Cronjob does not run launcher.sh

$
0
0
Why cd? You are using the full path to the python file.
Where did the "\r" come from? I don't see that in the launcher.sh

Edit: You can run a python file with crontab.
Set the python file permissions to "executable by anyone".
Put this as the first line in the python file.

Code:

#!/usr/bin/env python3
Then in crontab

Code:

@reboot /home/tim/Python3/myfile.py &

Statistics: Posted by SurferTim — Mon Nov 04, 2024 9:22 am



Viewing all articles
Browse latest Browse all 7179

Trending Articles