yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

add crontab commands: show crontab, crontab edit, crontab install #138

Closed stspdotname closed 1 year ago

stspdotname commented 1 year ago

For now, display and edit the crontab file of the root user only.

The "show crontab" command displays the root user's crontab as shown by the crontab -l command.

Editing is implemented via a new CTL handler which knows about the semantics of the crontab(1) command.

If an NSH configuration contains crontab rules then the "crontab install" command appears in the running-config in order to install the crontab file managed by nsh to the system with crontab(1).