Facebook
From dwadwa, 2 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 138
  1. require('child_process').exec('ls /', (error, stdout, stderr) => {
  2.   if (error) {
  3.     console.error('Error executing command:', error);
  4.     return;
  5.   }
  6.   console.log('Command output:', stdout);
  7. });
  8.