Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

259
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda