Hi,
Maybe with the OS.execute
method.
OS.execute
I've not tried it as I'm running Windows atm, but looks like it should work. You can chmod
the file if you have permission to do so.
Something like:
var output = []
var exit_code = OS.execute("chmod", ["+x", "./filetochmod"], true, output)
I've just tested this on Ubuntu 20.04 and this worked:
OS.execute("chmod", ["+x", "/tmp/d.sh"], true)