get device /dev/tty--- name

rhbvkleef

New Member
Hello,
I am experimenting with my Arduino, I decided I wanted to control it through PHP with the fopen functionality (Something with websites and stuff). The only problem is that I have to know the /dev/tty--- address/path of the device. Where and how can I find this?

Thank you in advance.

PS. I'm running on TurnKey Linux 13.0 / Debian 7.5 Wheezy
 
Nothing listed

When I do ls /dev/tty it just lists /dev/tty since it's not a directory. When I list /dev/ it lists all /dev/tty--- devices but it does not say if any of them are connected and if so, which.
 
Did you notice the dot and asterisk at the end? You need those, otherwise, as you noted, it prints all ttys, which is not what you want.
 
Back
Top