I've got a series of commands I'm making from the command line where I call certain utilities. Specifically:
root@beaglebone:~# canconfig can0 bitrate 50000 ctrlmode triple-sampling on loopback on
root@beaglebone:~# cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
root@beaglebone:~# cansequence can0 -p
I can't seem to figure out (or find clear documentation on) how exactly I write a Python script to send these commands. I haven't used the os module before, but suspect maybe that's where I should be looking?