Running console command from plugin and displaying the output


Hi there,

I'm trying to execute a CURL request from my plugin and display the JSON Response in the console window.

I've already tried this:

But it doesn't work. It just gives me an error: error=2, No such file or directory

The only thing that works is Runtime.getInstance().exec("curl ...");

But this is executes in silence and I am unable to display the response in the console.

I'm just starting with plugin development and any help would be really appreciated!

Thanks in advance :)


Please sign in to leave a comment.