Problem executing scripts (extcommands.xml)

Hi,

im trying to execute some scripts through the dashboard (v0.92). Add following to the extcommands.xml...

The button show up in the dashbaord but nothing happens on executing.
<command>
    <name>Testbutton</name>
    <execute>sudo cat /var/lib/Repetier-Server/database/file.py | ssh root@xxx.xxx.xxx.xxx python</execute>
</command>
I tried also a normal bash script... but this is also not working.
<command>
    <name>Testbutton</name>
    <execute>sudo /var/lib/Repetier-Server/database/shutdown.sh</execute>
</command>
Also changed the rights from the files to 775 without success.

When i execute the commands through CLI everthing works fine.

Anyone an idea?

Thanks in advance
dev_printer


Comments

  • sudo is most likely your problem. User is repetierserver so you need to add your scripts into the list of sudoers without password prompt. See in our manual how we describe this for the shutdown which we add also to sudoers.
Sign In or Register to comment.