Hi Everyone,
I want to execute a python script which contains some shell commands, by clicking an HTML button in Angular Js UI. So far I've done this,
```
<input type="button" id='script' name="scriptbutton" value=" Run Script " onclick="goPython()">
<script>
function goPython(){
$.ajax({
type: 'GET',
url: 'script.py',
success: function(data){
alert(data);
console.log('success',data);
});
</script>
```
However, i nthe console I only get the contents of the script, the script itself doesn't get executed. I googled and found that I need to make an $http to my python script and set up a listener in that script as well. But I don't know how to achieve that. Can you guys help me what I need to do to execute the python script by clicking the button.
Thanks