Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
Netcat using exec() Function in JavaScript

I would like to use netcat in JavaScript by using exec function. I wrote below function when I run it I am not seeing anything on my command line.

  const { exec } = require('child_process');
  var myScript = exec('nc -l 87',
          (error, stdout, stderr) => {
              console.log(stdout);

              console.log(stderr);
              if (error !== null) {
                  console.log(`exec error: ${error}`);
              }
          });

PS: I know the netcat module in node.js but I want to use it with exec function.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Seemingly, problem were related with the using zsh instead of using bash. If you run your node application in the bash shell the application is giving the expected output.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!