1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Understand the limitations of SSH scripts
This guide relates to the execution of scripts launched via SSH on various types of machines.
No time limit
There is no predefined time limit for the execution of scripts launched via SSH, meaning that the script can run as long as necessary. However, if the SSH session ends, the script will also be interrupted.
It is possible to run scripts in the background to avoid this issue. In this case, the script will continue to run even if the SSH session is interrupted.
Other resources may be limited either by the machine's capacity or by the configuration (PHP scripts limited to 512 MB of memory, for example).
It is possible to change these limits on Serveur Cloud machines, but not on hébergements mutualisés.