I am actually try to run python script on my raspberry Pi from my smartphone in Bluetooth.
When I try to run this command : python name.py
I get always the same error : Must be connected to a terminal
I tried to run this command with screen but no sucess :
pi@raspberrypi:~$ screen -dm python name.py&
pi@raspberrypi:~$ screen -d -r&
Must be connected to a terminal
Before connexion I have always this maybe the problem is from there ? :
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
Thanks for your help !