Tell me. Windows has the ability to control the functionality of (any) program without using a graphical shell. Maybe cmd? powershell? What are the solutions to this topic? Maybe there is such a possibility in Linux? I know that you can run or close. But no more. Maybe someone knows what direction to move?

  • If the program provides control via the command line, then this possibility exists; if not, then no. And the operating system has nothing to do with it. You can only start the process or complete it. - Rikitikitavi
  • The usual approach is to restart the application with the necessary management keys, which, when it detects an already running copy of the application, passes all of this to it, and ends the work itself. - Akina
  • okay If even so, in that case, if the documentation does not indicate console commands, then in the application it means there are none. Is that only one way? Perhaps there are ways to determine the presence of commands or methods of treatment by some method? - Sergey Rachuk pm
  • My melofon suggests that the author of the question needs some kind of xdotool . - aleksandr barakin
  • Alexandr. Thank you for the tip. Your melofon was not wrong. - Sergey Rachuk

1 answer 1

It is not the system that is responsible for this, but the capabilities of the application itself, if it gives you the opportunity to control yourself via input data, then yes, if there is only a graphical interface, then there will be no access via the console. Starting and closing is simply due to the fact that this is a system command to turn off the process. By the way, often it is just the opposite, above the console utilities, Ie, over programs that perceive only the input stream from the console, they implement a graphical interface, for example the GitHub desktop, this is a wrapper over the console utility git.