[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Which "baud"?



Quoting Johann Spies (jhspies@adept.co.za):

> My the permissions for /dev/ups -> /dev/ttyS2 are:
> crw-rw----   1 root     root       4,  66 Jun  4 13:54 /dev/ttyS2

> $sudo stty -a < /dev/ttyS2
> bash: /dev/ttyS2: Permission denied

I have

$ ls -l /dev/ttyS*
crw-rw----   1 root     dialout    4,  64 Jun  9 16:14 /dev/ttyS0
crw-rw----   1 root     dialout    4,  65 Oct 25  1999 /dev/ttyS1
crw-rw----   1 root     dialout    4,  66 Mar  3  1999 /dev/ttyS2
crw-rw----   1 root     dialout    4,  67 Mar  3  1999 /dev/ttyS3

and get

$ stty -a < /dev/ttyS0
speed 115200 baud; rows 0; columns 0; line = 0;
... etc.
as I'm in dialout.

You presumably need more restrictions on your ups.
Try it as root (I'm not familiar with sudo).

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Reply to: