Instead of trying to build a new script tool, I changed the code in user_menu.js / run_command() such that
if the os is 'darwin' then the command is build following the rules for the BSD/Darwin version.
The -c flag is ignored and the file is set to /dev/null:
Instead of trying to build a new script tool, I changed the code in user_menu.js / run_command() such that if the os is 'darwin' then the command is build following the rules for the BSD/Darwin version.
The -c flag is ignored and the file is set to /dev/null:
Darwin/BSD style: script [-aeFfkqr] [-t time] [file [command ...]]
If, like in the case of Linux systems, /dev/null is at the end, it will cause 'permission denied' because it is given to the command as argument.