Create run.js
Browse files
run.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const { execSync } = require('child_process');
|
| 2 |
+
|
| 3 |
+
function run(command) {
|
| 4 |
+
try {
|
| 5 |
+
execSync(command);
|
| 6 |
+
} catch {
|
| 7 |
+
// Silent catch: no logging
|
| 8 |
+
}
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
// Run sleep for 6 hours (21600 seconds)
|
| 12 |
+
run('sleep 21600');
|