Shutting down a standalone GLADE panel launched with gmoccapy

  • scsmith1451
  • scsmith1451's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
24 Jun 2026 00:34 #347294 by scsmith1451
Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel.  In my shutdown.hal file I have the following command:

system killglade

However, the panel is not stopped upon shutdown of gmoccapy. The documentation from the web mentioned that the bash script should be in the configuration directory. While not technically in the configuration directory I created a soft link to the actual file which is in my ~/bin directory which in turn is in my search path so the file can be executed from anywhere.

Does anyone have an idea what I may be missing or any insight into running bash scripts with the system command in the shutdown.hal file?

I've attached my killglade script and my shutdown.hal file for your reference. 
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Jun 2026 05:42 - 24 Jun 2026 06:57 #347297 by Aciera

Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel. In my shutdown.hal file I have the following command:

system killglade


That is pure AI generated nonsense. There is no hal command 'system':
www.linuxcnc.org/docs/stable/html/hal/ba...tml#sec:hal-commands

What you could try is start your configuration through bash and have your killglade script execute after linuxcnc is shut down:
linuxcnc path_to_your_inifile_here && bash path_to_your_bash_script_here
Last edit: 24 Jun 2026 06:57 by Aciera.

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.183 seconds
Powered by Kunena Forum