Execute cmd commands from Logseq plugin

As the title, I don’t know how to Execute cmd commands from my Logseq plugin.
var exec = require('shelljs.exec') exec('echo hello')
I try another code:
const exec = require("child_process").exec; exec(cmd);
However, Logseq shows nothing or displays the error.
Help me, please!

What a coincidence!

Executing command is impossible now. You can see this thread: Plugin: Support Execute Subprocess - #6 by singee

1 Like