I'm trying to launch bash script from javascript (plasmoid). I have in plasmoid's main.js this command:
plasmoid.runCommand("bash-script.sh");
When starting plasmoid from terminal by plasmoidviewer, I can see all the output that I expecting to see. But I want to redirect script's output to file. So I trying to do it like this:
plasmoid.runCommand("bash-script.sh > output.txt");
But output.txt does not appear. Where am I wrong?