V
V
Vanes Ri_Lax2016-04-07 14:18:43
linux
Vanes Ri_Lax, 2016-04-07 14:18:43

Is there a limit on the execution time of a cron program?

Hello,
I wrote a program in java, I need it to be executed by cron. While reading this article , at the end I came across the fact that programs, when executed by cron, will have a time limit. And my program works out from about 30 minutes to 3-4 hours.
How can this problem be solved?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Burca, 2016-04-14
@Cram

If you are using a server from Masterhost or another provider, then you need to confirm with them.
But if you use your own server - by default there are no restrictions on the execution time of the process.

Y
younghacker, 2016-04-14
@younghacker

If the server belongs to you, then there is no restriction. It is important that your program does not get into a loop when the first has not yet ended, and the second has already begun.
For shared hosting , hosters are forced to limit the running time of cron jobs because they eat memory and often CPU and network sockets. But I doubt that there someone will allow you to run JAVA, especially in the crown! :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question