O
O
Optimus2015-02-28 23:04:12
linux
Optimus, 2015-02-28 23:04:12

Where are cron jobs stored?

You need to add a lot of the same type of cron tasks. Accordingly, manually through the control panel to do this is not too hunting. Maybe they are stored in some file that can be downloaded, corrected in notepad, uploaded back?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
Optimus Pian, 2015-03-01
Pyan @marrk2

The correct answer is /var/spool/cron

D
Dmitry Vapelnik, 2015-03-01
@dvapelnik

in Unix, cron tasks are located in several places:
1. /etc/cron.d- here you can create files with cron jobs, which he will download and execute according to the specified schedule. in these files, you need to specify the user on whose behalf task
2 will be executed. /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly, /etc/cron.weekly - here we put scripts that will be executed daily, hourly, monthly and weekly. these are such prepared schedules that are loaded and executed at a certain time
3. crontab -e- executing this command with the key will open a text editor for editing tasks for the current user's cron. be careful - these tasks are related to the current user and will be executed on behalf of him
accordingly, the easiest way to dynamically edit jobs for cron is to manipulate the jobs in/etc/cron.d

F
FanatPHP, 2015-02-28
@FanatPHP

You have a question about the control panel for clients of the system "Ya with a show-off hoster-krivoruchko". cpanel and that's it.
It has nothing to do with the unix tag.
because you can write to Unix
and load everything.
And where to load in your panel - you need to ask users of the panel, not Unix.
However, in any case, if you have "a lot of the same type of cron tasks" there, then you are doing everything wrong.

D
Dmitry, 2015-02-28
@thewind

Well, actually, if you have root access, then /etc/crontab, as a rule.

I
Ishayahu, 2021-02-03
@Ishayahu

If someone is also looking for freebsd - /var/cron/tabs/ (see man crontab)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question