LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   how to find correct tty number? (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-find-correct-tty-number-202341/)

SeanatIL 07-07-2004 06:15 PM

how to find correct tty number?
 
I am going to use serial port to do some communication stuff. when the program comes to open("/dev/ttyS0", O_RDWR|O_NOCTTY );
programme hangs with output "pemission denied".

What's the problem? Is it because I used wrong device name? How can I know which tty device my serial port is using? My Linux box has a ps2 mouse and a keyboard. and there is one COM port, which I am trying to use.

Thanks,

Aussie 07-07-2004 07:03 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Your other thread already has a reply and will remain open.


All times are GMT -5. The time now is 09:13 AM.