Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
AFAIK, if you just specify the 1, the script will be run every first minute of the hour, like 00:01, 01:01, 02:01 , ..., 23:01.
It is not run every minute.
Tobi is correct. If you specify 1, it'll run on the first minute of every hour. If you specify */1, it'll run every minute. You could have just specified * and achieved the same result, because cron checks its tables every minute to see if it has a job to run.
Likewise, if you specify 5, it'll run on the fifth minute, whereas */5 means every five minutes.
AFAIK, if you just specify the 1, the script will be run every first minute of the hour, like 00:01, 01:01, 02:01 , ..., 23:01.
It is not run every minute.
ok, I see. So to run for example something after every two hours, one should specify:
One more thing regarding crontab- in Mark G. Sobell"Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition)" on page 651 there is a following example:
Code:
00 02 * * 0,4 $HOME/bin/twice.week
..and the explanation is "twice.week runs at 12:02 AM on Sunday and Thursday (days 0 and 4)". Is this a mistake? This should be "twice.week runs at 02:00 AM on Sunday and Thursday (days 0 and 4)", shouldn't it?
One more thing regarding crontab- in Mark G. Sobell"Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition)" on page 651 there is a following example:
Code:
00 02 * * 0,4 $HOME/bin/twice.week
..and the explanation is "twice.week runs at 12:02 AM on Sunday and Thursday (days 0 and 4)". Is this a mistake? This should be "twice.week runs at 02:00 AM on Sunday and Thursday (days 0 and 4)", shouldn't it?
Yes, I would consider this a mistake in the book. In fact I have an entry like "0 2 * * *" in my root's crontab on the fileserver that syncs every night at 02:00 AM my Slackware mirror.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.