How can I execute a bash script using roslibjs?

asked 2021-04-13 05:49:50 -0500

Py gravatar image

I have a HTML button setup to call a function in my Vue app, which works great. I'd like to expand this to run a bash script. How would I do this? The function I have so far is as follows. I'm just not sure how to fill in the gap to run my script.

testFunction: function (){
             console.log('TEST TEST TEST')
             // SOME CODE TO RUN A BASH SCRIPT
        }

Any ideas?

edit retag flag offensive close merge delete