[LUNI] Making a perl script run contantly.
C. Strickler
ashcnshsad at gmail.com
Wed Apr 9 13:07:53 CDT 2008
Ok, so I'm way late to the party on this, but an easy way of doing things
like this is just by using the @reboot function in cron.
So in your crontab you'd have:
@reboot /path/to/some/script
On Fri, Jan 11, 2008 at 8:43 AM, Richard Reina <richard at rushlogistics.com>
wrote:
> 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
> --
> Linux Users Of Northern Illinois - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>
More information about the luni
mailing list