Home > Enterprise >  Execution via node js script with problems
Execution via node js script with problems

Time:12-17

Good morning, I have a problem running a command on the linux terminal and returning it to an api, for some reason I get a response on the server that has nothing to do with it, it's as if I just ran the "show route". The answer is in an array but this is normal, the problem is that they have nothing to do with the manual command.

Code:

Code

Manual command: Manual command

Result the server receives: Result

CodePudding user response:

Try

exec('/usr/sbin/birdc show route', (err, stdout, stderr)=>{})
  • Related