Difference between revisions of "Talk:Serial Hack"
From LinuxMCE
(please don't edit pages unless you actually have something to add) |
m (The main article is not your personal blog. Have the discussion and bring the best results to the article.) |
||
Line 1: | Line 1: | ||
+ | == Comments == | ||
+ | If someone out there has a better way of doing this, please post it here! -AVJohn | ||
+ | |||
+ | ---- | ||
+ | How about: | ||
+ | cat >/usr/pluto/bin/ListSerialPorts.sh <<"EOF" | ||
+ | #!/bin/bash | ||
+ | |||
+ | tree -fi /dev | grep ttyS | ||
+ | tree -fi /dev | grep ttyUSB | ||
+ | EOF | ||
+ | |||
+ | That should overwrite the file in one go, without having to use vi. | ||
+ | --[[User:Zaerc|Zaerc]] 04:53, 20 September 2007 (MST) | ||
+ | |||
+ | |||
+ | When you figure out a better way, edit the article. Until then this is just discussion. [[User:Trout|Trout]] 08:06, 21 September 2007 (MST) |
Revision as of 16:06, 21 September 2007
Comments
If someone out there has a better way of doing this, please post it here! -AVJohn
How about:
cat >/usr/pluto/bin/ListSerialPorts.sh <<"EOF" #!/bin/bash tree -fi /dev | grep ttyS tree -fi /dev | grep ttyUSB EOF
That should overwrite the file in one go, without having to use vi. --Zaerc 04:53, 20 September 2007 (MST)
When you figure out a better way, edit the article. Until then this is just discussion. Trout 08:06, 21 September 2007 (MST)