Run a batch file

Is there a way to run a batch file from Javascript in Dynamic text plug-in or any other plug-in, in Grafana

Welcome @reemadutta18

What are your requirements, what are you trying to accomplish. As you can guess running a batch file from js is a big security hole.

Hi @yosiasz
We need to prepare a dashboard showing all the software which the users has to update in his system…and once they click button the software will be updated via button. So I have added a dynamic Text plug-in and added a button. On click of it trying to execute command. Please let me know if this can achieved by Grafana

The button click could be calling a url that is running a php or python script, that then could call a batch file, so yes this is doable.

1 Like