javascript execute powershell script
var spawn = require("child_process").spawn,child;
child = spawn("powershell.exe",["c:\\temp\\helloworld.ps1"]);
child.stdout.on("data",function(data){
console.log("Powershell Data: " + data);
});
child.stderr.on("data",function(data){
console.log("Powershell Errors: " + data);
});
child.on("exit",function(){
console.log("Powershell Script finished");
});
child.stdin.end(); //end input
Also in Shell:
- heroku cli
- how to start a web server linux
- heroku install classic
- fatal: refusing to merge unrelated histories
- zip command in linux
- mkdir linux
- how to see all branches in git
- set git origin
- edit branch name git
- ubuntu terminal find file recursive
- turn of raspberry
- 2019 VS MS build broken after install
- clear untracked files git
- bash grep and sort
- ubuntu ram type
- powershell create symlink
- open a pdf on linux
- powershell upgrade
- run screen on background linux terminal
- bash permissions
- homebrew postgres
- how to check if pip is installed
- run python program from command line
- how to check which packages homebrew has installed