How to execute a Python script in Saltcorn?


No row selected
No row selected
abcxyz     2 years ago

Hi, I tried to trigger a Python script in Saltcorn by the "run_js_code" feature of the "Action" object. However, I did not figure out which Javascript code I have to pass to make it working. Thank you for helping!



No row selected
No row selected
      2 years ago

Test


No row selected
No row selected
      2 years ago

The bash module now supports shebangs, so you can install that, create a run_bash_acript action and put 

#!/usr/bin/env python

or

#!/usr/bin/env python3

at the top and then continue your python script


No row selected
No row selected
      10 months ago

No row selected
No row selected
      10 months ago

hi



Sign up to post a reply