pille Posted November 8, 2023 Share Posted November 8, 2023 (edited) Hallo, ich habe 1-2 Python Skripte, welche ich via User Scrips regelmäßig laufen lassen will. Wie muss ich da genau das Skript anpassen? Python ist über die NerdTools installiert. Oder gibt es hier eine bessere/einfachere Lösug? #!/usr/bin/env python # -*- coding: utf-8 -*- So startet das Script. und das ist die Fehlermeldung: /usr/bin/env: ‘python’: No such file or directory Liebe Grüße Edited November 8, 2023 by pille Quote Link to comment
Archonw Posted November 8, 2023 Share Posted November 8, 2023 Wenn du im Unraid Terminal which python eingibst, was bekommst du als Ausgabe? Quote Link to comment
pille Posted November 8, 2023 Author Share Posted November 8, 2023 (edited) 7 minutes ago, Archonw said: Wenn du im Unraid Terminal which python eingibst, was bekommst du als Ausgabe? hmm. root@unRaid:~# which python which: no python in (/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin) which python3 findet /usr/bin/python3 das Skript dahingehend dann einfach anpassen? Edited November 8, 2023 by pille Quote Link to comment
Solution Archonw Posted November 8, 2023 Solution Share Posted November 8, 2023 Ja genau. Quote Link to comment
pille Posted November 8, 2023 Author Share Posted November 8, 2023 Ich danke dir! Quote Link to comment
hawihoney Posted November 8, 2023 Share Posted November 8, 2023 1 hour ago, pille said: ich habe 1-2 Python Skripte, welche ich via User Scrips regelmäßig laufen lassen will. Darf ich noch etwas hinzufügen? Wenn es etwas umfangreichere Skripte mit zusätzlichen eigenen Modulen werden dann kannst Du natürlich auch Folgendes machen: #!/usr/bin/bash #arrayStarted=true #backgroundOnly=true #clearLog=true #noParity=true python3 /mnt/disk1/Projekte/Projekt1/Source/BlaBla.py Vorteil: Auch für komplexe Skripte geeignet. Programmierung nicht auf Flash. Nachteil: Die Platte fährt ggfs. hoch. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.