init project
This commit is contained in:
18
playground.js
Normal file
18
playground.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const { spawn, exec } = require("node:child_process")
|
||||
|
||||
// const subprocess = spawn('ls', ["-l"])
|
||||
|
||||
// subprocess.stdout.on("data", (data) => {
|
||||
// console.log(data.toString("utf-8"))
|
||||
// })
|
||||
|
||||
|
||||
exec("echo '99999.incompass.netstar-inc.com' | bin/gcf1check.sh etc check_categorize_hybrid", { cwd: '/usr/local/gcf1' }, (error, stdout, stderr)=>{
|
||||
if (error) {
|
||||
console.error(error)
|
||||
return
|
||||
}
|
||||
|
||||
console.log(stdout.trim())
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user