A
A
Andrey Andrianov2019-04-05 08:24:53
Task Schedulers
Andrey Andrianov, 2019-04-05 08:24:53

How to execute multiple scripts in cron?

Omniscient ALL!
There are several scripts.
Each of them is performed differently in duration - from 1 second to several minutes.
The results are written to separate files.
Is it possible to run them at _one_ time (and not sequentially)
so that the result collector processes everything, for example, in half an hour.
Best regards
Andrey

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-04-05
@itld

Just write all the scripts separately in cron.
Cron will try to run them.
Cron does not guarantee that all scripts will run exactly second-for-second, but will try to run everything that is scheduled for that minute. In the normal case, if the machine is not overloaded, usually everything starts at zero or the first second.
But if some task could not start in a full minute due to server load, it can be skipped by cron.

R
Radjah, 2019-04-05
@Radjah

You add multiple tasks at the same time. If the system does not get cancer from this, then you will get the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question