Skip to content

Instantly share code, notes, and snippets.

@mqklin
Created August 25, 2022 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mqklin/70065c63b7ba939b8eb515f37cd45a85 to your computer and use it in GitHub Desktop.
Save mqklin/70065c63b7ba939b8eb515f37cd45a85 to your computer and use it in GitHub Desktop.
const {exec} = require('child_process');
setInterval(() => {
exec('tput bel', (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
});
}, 1_000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment