I am trying to get a simple script working in Ubuntu to pass a single command to the Uno. Here is my script.
#!/bin/bash # Port setting stty -F /dev/ttyACM0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts echo "power 1" > /dev/ttyACM0
This does nothing when executed on its own. For what ever reason, if minicom is open and connected in a separate terminal, the command gets passed through with the script fine. (mistakenly found this out).
I'm not sure what I m missing here, so any help is greatly appreciated.