Hello,
I am working to connect to a serial link (USB). In order to do that I
have to write this command:
sudo ../../tools/stm32w/serialdump-linux -b115200 -d10000 (keeping in
mind dat*serialdump-linux*, which is in the path, is not a folder, it's
an executable)
To get to the root, I have used: returncode =
subprocess.call(["/usr/bin/sudo", "/usr/bin/id"])
Then to connect to the USB through the command above I tried the following:
usb =
Popen(['../../tools/stm32w/serialdump-linux','-b115200','-d10000'],
stdout=PIPE, stdin=PIPE, stderr=STDOUT)
usb.communicate()[0]
But I am getting an error, it's considering that serialdump-linux as a
folder!!
Any help how I can run the command?
Many thanks
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor