N
N
namanade2018-06-26 05:20:50
linux
namanade, 2018-06-26 05:20:50

Adding/removing periodic background tasks in Linux -- a library?

There is a web application. And there is a bash script that takes an argument as input.
It is necessary to be able to add or remove background periodic tasks that this script does, taking different arguments as input. And set the frequency.
All this through a web page.
That is, something like cron tasks, only through a web page, dynamically removed and added, and with a dynamic time interval.
1) Is cron generally suitable for this kind of tasks if I take some kind of cron library, for example, in python and interact with cron through it from my web application?
2) If not, what should you choose?
I do not need anything complicated, I need a simple, free, reliable, and at the same time de-facto solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2018-06-26
@pfg21

to look towards systemd?? there and .service and .timer with a bunch of parameters and more thoughtful management.
stamp a set of tasks and enable / disable them through the console command systemctl enable / disable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question