On 14/07/03 22:58 +0530, USM Bish wrote: > On Mon, Jul 14, 2003 at 10:34:20AM +0530, Goutam Baul wrote: > > > > > 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? > > The default permissions for /dev/ttys0 is 666. Normal users > should have access to it ... however ... Serial port, not ttys0 but ttyS0. [EMAIL PROTECTED] devdas]$ ls -l /dev/ttyS0 crw-rw---- 1 root uucp 4, 64 Apr 11 2002 /dev/ttyS0 > > > > The basic problem is that this script needs to run continuously > > in the background. > > perldoc -q daemon
> However, this may be the reason why permissions may have been > changed for strictly root access, so that there is no user > interference in the continuous data capture by root. > > But the script is dying after a few days and the system is not > > getting the proper data from the serial port. > > Cannot say, but this should not happen. A continuous process > should not be spontaneously terminated. Does the script call > external processes without adequate error traps ? More importantly, why isn't the script logging its error and warnings? Whats in the logs? Devdas Bhagat ------------------------------------------------------- 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
