How to run shell command

Hi,
I have run certain cmd or shell commands from code base dynamically, I tried to use “excec” from “child_process” but it doesn’t work well, is theia providing anything like that…?

Thanks in advance…

@akosyakov @vince-fugnitto @msujew

HI @Panneerselvam-D,

there are quite a few options to accomplish this, depending on whether you want to involve the user in the action. For example, you can create a new terminal (using the TerminalService) in the frontend and send the shell command that way. Users can then manually inspect the output.

However, your way of using child_process.exec should also work. What troubles were you experiencing with that?