reading from a serial port (boot)

Oleg Broytmann phd at phd.pp.ru
Tue Dec 11 04:00:12 EST 2001


The permissions of the script and mydaemin.py are mostly irrelevant here.
The permissions of the ttyS0 is releveant. You have to start you programs
as user root or as a user with the group uucp.

On Tue, Dec 11, 2001 at 08:25:50AM +0200, mixo wrote:
> My serial port permission look like this:
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> crw-rw----    1 root     uucp       4,  64 Dec 11 07:54 ttyS0
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> Now I have a script that starts up as the machine boots and
> read from the serial port. My problem is, it does not get
> anything from the port, unless I manualy start it as 'root'.
> What do I need do /change to get it to start reading at
> boot time?
> 
> P.S
>      The script to start the daemon has the following  permissions
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> -rwxr-xr-x    1 root     root         1463 Dec 10 17:29 myscript.sh
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
>      The daemon itself,
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> -rwxr-xr-x    1 root     root         3678 Dec 10 16:04 mydaemon.py
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list