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

Function readCrontab

scripts/local-schedule.js:113–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111const CRON_MARKER_END = '# CITADEL-SCHEDULES-END';
112
113function readCrontab() {
114 const r = spawnSync('crontab', ['-l'], { encoding: 'utf8' });
115 return r.status === 0 ? r.stdout : '';
116}
117
118function writeCrontab(content) {
119 const r = spawnSync('crontab', ['-'], { input: content, encoding: 'utf8' });

Callers 3

unixAddFunction · 0.85
unixListFunction · 0.85
unixRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected