B
B
bozuriciyu2019-09-20 01:05:25
linux
bozuriciyu, 2019-09-20 01:05:25

Is it enough to put the script in cron.hourly? What time should the script run?

I tested first bash script every minute through crontab -eeverything worked.
I put the same script in a folder cron.hourlysomewhere at 00:40. Googled that the scripts work out like at the beginning of the hour. Now 01:04 - I don't see any result.
Is it enough to put the script in cron.hourly?
What time should the script run?
How convenient is it to use and test all this? Because in its current form, it's a nightmare to the touch.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2019-09-20
@CityCat4

Is it enough to put the script in cron.hourly?

It is enough to put it in /etc/cron.d - by the way, cron.hourly processing is started from there. There you can see when it starts.

P
pfemidi, 2019-09-20
@pfemidi

Here 's a pretty good breakdown of cron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question