> Hello everybody, > > We are having a perl script that opens the serial port of the machine > (/dev/ttys0), reads the data and writes onto a text file. Now in doing so we > are having to run it with root user as the /dev/ttys0 is having access to > root only. Should we change the permission of the /dev/ttys0 so that other > user can open it ?
Yes > > The basic problem is that this script needs to run continuously in the > background. But the script is dying after a few days and the system is not > getting the proper data from the serial port. We tried to run the script > from the inittab with respawn. Our thinking was that the script will be > restarted as soon as it dies. But doing this resulted in having several > instances of the script running in the system and eventually the system was > getting out of resources. We are yet to get a solution for this. Any help in > this direction please ? Kill the first copy with killall -9 <your script> Secondly in perl, nice interface to serial port is available with SerialPort.pm perl module. Get it from cpan.org Best Regards, Mukund Deshmukh, Director, Beta Computronics Pvt Ltd, Nagpur. ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
