Hallo,
ich habe da ein Problem,
ich habe ein test.py geschrieben die Sound Dateien bei tasten druck ausgibt.
wenn ich die Datei mit sudo python test.py ausführe funktioniert es so wie es soll
in /etc/rc.local habe ich folgendes eingetragen
Bash
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
python /home/pi/test.py &
exit 0
Alles anzeigen
nach dem Reboot habe ich grep python ausgeführt
pi@raspberrypi ~ $ ps -ef | grep python
root 2176 1 97 20:30 ? 00:16:51 python /home/pi/test.py
pi 2219 2192 0 20:48 pts/1 00:00:00 grep --color=auto python
das Programm läuft.
nur es gibt keinen ton von sich.
beende ich die test.py und starte sie per Hand funktioniert es wieder.
was läuft da schief???
lg
m4xx