Try running the script as service with checking the PID each time u are
starting .....

-Sumit

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Goutam Baul
Sent: Monday, July 14, 2003 10:34 AM
To: LIH
Subject: [LIH]permission of devs0

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 ?

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 ?

We are running RH 8.0

Goutam Baul
Corporate Information Systems





-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to