./rtson.c /dev/ttyS0 100
Das soll dann halt in ein Python-Skript
Ich habs schon mit
Code: Alles auswählen
execfile ("./rtson.c /dev/ttyS0 100")
Code: Alles auswählen
execfile ("./rtson.c", "/dev/ttyS0", "100")
mfg tyho
Code: Alles auswählen
execfile ("./rtson.c /dev/ttyS0 100")
Code: Alles auswählen
execfile ("./rtson.c", "/dev/ttyS0", "100")
Code: Alles auswählen
>>> execfile("/home/till/Documents/Steuerung/rtson /dev/ttyS0 10")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: '/home/till/Documents/Steuerung/rtson /dev/ttyS0 10'
Code: Alles auswählen
>>> execfile("/home/till/Documents/Steuerung/rtson", "/dev/ttyS0", "10")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: execfile() argument 2 must be dict, not str
tyho hat geschrieben:aber wie übergeb ich mit subprocess des argument?
Mitglieder in diesem Forum: 0 Mitglieder