init project

This commit is contained in:
daniel muniz
2024-06-05 18:15:03 -03:00
commit 6d4e9bb221
6 changed files with 255 additions and 0 deletions

18
playground.js Normal file
View 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())
})