Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Continuous or timed?

by tobyink (Canon)
on Dec 11, 2020 at 17:19 UTC ( #11125019=note: print w/replies, xml ) Need Help??


in reply to Continuous or timed?

If the script has a very low start-up cost/time, then I'd go with #2 and set cron to run it very frequently. Every 2 minutes, or perhaps every minute.

Replies are listed 'Best First'.
Re^2: Continuous or timed?
by Bod (Curate) on Dec 11, 2020 at 20:05 UTC

    The startup time is negligible and it doesn't really matter as the script will be the only thing running on the device other than the OS. There will be an updater so I can remotely update the script but that will run in the early hours of the morning so it doesn't interfere with anything else...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2021-10-27 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (93 votes). Check out past polls.

    Notices?