I'm writing a little script right now which sends some data to the Arduino through a bash shell script. The command that sends the data looks like this:
alias led_green="echo -e -n '\x10' > /dev/ttyACM1"
As you can see, I have /dev/ttyACM1 hard coded into the program. This is problematic, because if I change USB ports the value will change as well, and my script won't work. I'm wonder if there's a way to programatically tell which port the arduino is connected to so the script will always run as long as there's an arduino connected.