Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm wondering - CRON entry allows to set up a cron job with minutes, hours, days etc.
But what if i need to do something at 6:23:38 ? I mean, i need second precision?
I don't know if cron can be relied upon to always start jobs at the full minute.
My cron jobs always start after the minute, and not precisely - at least 9 out of 10 times it's :01, with the rest being :02. I wouldn't be surprised if on a more heavily loaded system it would vary more and sometimes run later.
Quote:
Originally Posted by TrAvIkK
Yeah, but sleep 38 means processor usage by 38 sec?
Sleep uses no (or virtually no) CPU.
/me wonders what cron job could require second precision, though.
Hmm what job?
Well, i'm a developer of Web-Based MMO, and some operation (as Battle calculations etc.), which calculating them by users interaction would take too much time.
Cron is not intended for high-accuracy timing. It CAN be and is frequently off by several seconds (due to process start-up, etc.). If you need that kind of precision, I suggest running a daemon of your own to avoid process start-up overhead.
Cron is not intended for high-accuracy timing. It CAN be and is frequently off by several seconds (due to process start-up, etc.). If you need that kind of precision, I suggest running a daemon of your own to avoid process start-up overhead.
How to do such thing?
Coz I think i like it
I mean, i know I have to write it by my own (well, as for now - i'm onyl learning C++, so it could be kind of hard :P), but may be there are on internet some examples?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.