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:
CodePudding user response:
Try
exec('/usr/sbin/birdc show route', (err, stdout, stderr)=>{})