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.
I've set up a task to happen every friday at noon (with no problems) but I was wondering without having to go through a test if anyone knew what would happen if my computer is off at that particular time. Will it upon computer boot up
1. Ignore task and simply wait until the following friday before doing the task (again if the computer is on)
OR WILL IT
2. Do the task as soon as the computer is switched.
Also will the task be performed no matter who is logged in (ie will a root task be performed while a restricted user is logged in)
cron assumes the PC is on 24/7 and will only run tasks at their scheduled time.
Anacron is a periodic command scheduler and is designed to run those tasks only on day intervals. Anacron is not a full time daemon and does not replace cron. It is designed for those task that need to be run on computers not running 24/7
Tasks will run in the background independent of any user that is logged in.
I'm interested in the anacron you speak of and I think I've got what it is but can I ask this. I am running FC4 and my anacrontab file has the following 3 lines
Does this mean anacron will automatically run any jobs which have not been run using cron? If so then there is nothing I have to do to get run the tasks I have set up in cron, correct?
Cheers, I've looked thorugh the documentation link you sent but I still cant work out how to schedule a command to run weekly with this comand. I was lucky enough to use (kcron I think) a gui based cron and didnt have to worry about comman line.
Could you give me an example of running a weekly command at midnight as root user?
So the comman you entered will run ever 7 days, 70 minutes from the time you entered the command? And it will run the command '/etc/cron.weekly' or 'run -parts'?
Sorry for the constant questions but I'm trying to get get the structure of the comman nailed down
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.