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

228
Vistas
While running a Batch file with node.js on call, there is no log output

I wanted to keep everything in 1 window so I can track my Discord Bot's resources properly. I've noticed that batch's call can be used for this. The node.js file works however the console.log never prints. Is there any other way to do this than throwing call node bot.js -log | set /P "="?

The combinations tried including removal of -log or bringing it back. Start /w node bot.js -log | set /P "=" always worked, but again, trying to keep it all in one screen if that makes sense? I also removed | set /P "=" and it outputs, but if the bot crashes, the batch file will not restart. Is there also something that needs to be different in the Node.js file that needs to print differently or no?

Here is the File's Structure:

title Orophia's Talkative service
:TheIsle
echo (%time%) Orophia launched
cd C:/Hosting
call node bot.js -log | set /P "="
echo (%time%) WARNING: Orophia has crashed or terminated. Restarting in 5 seconds...
timeout /t 5
goto TheIsle

(I dont know how to set the color code to the batch format with code box >.<')

about 4 years ago · Juan Pablo Isaza
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