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.
Not really, cron does not specify a time frame to run a command. It will only execute the command at the specified time. For example
* 13-14 * * * <command>
13-14 would mean run the command 2 times every day. Once at 1300 and once at 1400.
* 12,13-14 * * *
Would mean execute the command 3 times, 1200, 1300 and 1400. Can't have fractional numbers. And,
* 9-15/2 * * *
Would mean execute command every 2 hours from 0900 - 1500.
Stopping or pausing a backup process once started would depend on the application and might not be possible. Do you know how long the backup process will take? What application are you using to create the backup?
its an example, not an actual backup, just a test. So here is the question...
I want to kill a prosess every second minute in the time between 08:00-16:00. But between 12:00-12:30 i dont want to kill the prosess, and this job is supposed to go every day except saturday and sunday, and time from 16:00-08:00...hehe...
Originally posted by linuxtesting2 this is just an example...
if i want to be able to make a backup from 12:00 to 14:00, but not not from 12:30 to 13:00 how can i do this, can i use
* 12-12.30,13-14 * * *
dont mind the *... its just an example...the question is if i can spesify 1/2 hours, or do i need to put in the first tab, where its minute ?
-ole
I'm afraid that there's some misapprehension
as to what cron does ... it just starts a process.
It won't suspend it for half an hour unless you
create a second script that does exactly that at
a given time, and keeps track of the time half
an hour gap) itself.
If the way your backup is set-up is in two chunks
the first of which complete's in half an hour that
would work, too...
Originally posted by linuxtesting2
I want to kill a prosess every second minute in the time between 08:00-16:00. But between 12:00-12:30 i dont want to kill the prosess, and this job is supposed to go every day except saturday and sunday, and time from 16:00-08:00...hehe...:)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.