[LUNI] Making a perl script run contantly.
Richard Reina
richard at rushlogistics.com
Fri Jan 11 05:43:26 CST 2008
Thanks for the replies. I am working on creating an init.d script that will execute the perl script. However, in the start section can I just use /usr/local/src/serial_reader.pl?
Thanks,
Richard
Arun Khan <knura at yahoo.com> wrote: On Friday 11 Jan 2008, Richard Reina wrote:
> I have a short perl scripts that waits for input from a serial drive
> and parses the data. My problem is that if the machine is rebooted
> then someone has to log in and manually start the script.
Does the script run in the foreground or in the background? Perhaps you
could modify the script to run as a daemon - see webmin on how this is
done.
As someone suggested, run the daemon from rc.local or
an /etc/init.d/
-- Arun Khan
--
Linux Users Of Northern Illinois - Technical Discussion
http://luni.org/mailman/listinfo/luni
Your beliefs become your thoughts. Your thoughts become your words. Your words become your actions. Your actions become your habits. Your habits become your values. Your values become your destiny. -- Mahatma Gandhi
More information about the luni
mailing list