Spud
March 9, 2025, 2:56pm
1
please help as I am trying to get my Klipper machine to have a macro to start a terminal reaction the terminal reaction what I want is cd /home/pi/KlipperLCD && python3 main.py thanks for your help and time
@Spud ,
Please, do NOT delete the template. At the least, please provide all requested information and a klippy.log
.
1 Like
Sounds like you are looking for this:
# G-Code Shell Command Extension
### Creator of this extension is [Arksine](https://github.com/Arksine).
This is a brief explanation of how to use the shell command extension for Klipper, which you can install with KIAUH.
After installing the extension you can execute linux commands or even scripts from within Klipper with custom commands defined in your printer.cfg.
#### How to configure a shell command:
```shell
# Runs a linux command or script from within klipper. Note that sudo commands
# that require password authentication are disallowed. All executable scripts
# should include a shebang.
# [gcode_shell_command my_shell_cmd]
#command:
# The linux shell command/script to be executed. This parameter must be
# provided
#timeout: 2.
# The timeout in seconds until the command is forcably terminated. Default
This file has been truncated. show original
1 Like