Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Python Script via User Scripts ausführen?

Featured Replies

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 by pille

Solved by Archonw

Wenn du im Unraid Terminal 

 

which python

 eingibst, was bekommst du als Ausgabe? 

  • Author
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)

 

grafik.thumb.png.e09da829d62ce63335ed5e33ab822903.png

 

which python3 findet /usr/bin/python3

das Skript dahingehend dann einfach anpassen?

Edited by pille

  • Solution

Ja genau.

  • Author

Ich danke dir!

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.

 

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.