reading from a serial port (boot)

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Tue Dec 11 08:45:39 EST 2001


----- Original Message ----- 
From: "mixo" <mixo at beth.uniforum.org.za>


> 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?

Sounds like everything is cool.  Are you sure that the serial ports
are accessible at the point you start the daemon automatically?
That is, it looks like you might be running Linux, and Linux systems
often have rc files to initialize the serial ports.  If your daemon
starts too soon the serial ports will be unstable or unusable.

> 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
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
> 





More information about the Python-list mailing list