How to execute a Python script in Saltcorn?


No row selected
No row selected
abcxyz     9 months 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
      9 months ago

Test


No row selected
No row selected
      8 months 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
      7 days ago

No row selected
No row selected
      7 days ago

hi



Sign up to post a reply