Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

230
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda