sudo tee

By Hal Canary, 2008-09-28 20:27:24 (link)
#computers-code

I had been doing this:

sudo su -c 'echo AT+MODE=8 > /dev/ttyACM0'

but I think that this is better becasue it spawns one less shell:

echo AT+MODE=8 | sudo tee /dev/ttyACM0 > /dev/null

(back)