Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node spawn bash catch errors

const bashOut = spawn('bash', [script, param]);

  bashOut.on('error', (error) => {
    console.log('Bash error: ', error);
  });
 
PREVIOUS NEXT
Tagged: #node #spawn #bash #catch #errors
ADD COMMENT
Topic
Name
2+4 =