MCPcopy Create free account
hub / github.com/SethGammon/Citadel / writeCrontab

Function writeCrontab

scripts/local-schedule.js:118–121  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

116}
117
118function writeCrontab(content) {
119 const r = spawnSync('crontab', ['-'], { input: content, encoding: 'utf8' });
120 if (r.status !== 0) throw new Error(`crontab install failed: ${r.stderr}`);
121}
122
123function unixAdd(cronExpr, claudeCommand) {
124 const id = newId();

Callers 2

unixAddFunction · 0.85
unixRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected