Can I run commands in the terminal when using a headless server?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gamemap

I have a headless server running and want to close it. If i disable auto accept quit (Godot Documentation) and use Ctrl + C the programm is stopped without running a save function.

Is it possible to enter a command to the running godot server (like stop) so that the programm will save and quit?