Tech Tip: How to gracefully quit 4D from outside of 4D on MacOS
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac OS X
Published On: June 25, 2020
Sometimes it is necesarry to quit 4D from outside of the application; for example, from a shell script. It is important that when performaing this type of action that you do not forcefully end the task, as doing so could interrupt important processes and potentially damage the data.
In order to gracefully exit a 4D application from outside of 4D, one must first obtain the process ID of the 4D application, once that process ID has been obtained the kill command can be used with the INT parameter to properly interrupt 4D and intiate the exit routine.
For example, if the 4D process ID is 123 then the following macOS Terminal command could be used to gracefully exit the application:
kill -s INT 323 |