From f6d5b8fd21a4869f0eb23dcea6f04a51455f3383 Mon Sep 17 00:00:00 2001 From: jenterj Date: Wed, 23 Oct 2019 22:11:33 -0400 Subject: [PATCH 1/3] added help on the cron utility --- reference/static/commands/osx/cron.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 reference/static/commands/osx/cron.md diff --git a/reference/static/commands/osx/cron.md b/reference/static/commands/osx/cron.md new file mode 100644 index 0000000..91daef2 --- /dev/null +++ b/reference/static/commands/osx/cron.md @@ -0,0 +1,19 @@ +cron +------------- + +cron is a daemon or process which runs in the background. + +Specifically, it allows the user to schedule predefined processes to run in the background at a regular interval of time. + +cron repeatedly checks for when the scheduled time matches the current time, and then executes it's task once that condition is met. + +cron [-f] [-l] [-n] [-L loglevel] + +-f keeps the process in the foreground +-l enables LSB compliant names for cron.d files +-n adds the Fully Qualified Domain Name(FQDN) in the subject when sending email +-L loglevel tells cron what to log with the following modifications +-L 1 logs the start of all cron jobs +-L 2 logs the end of all cron jobs +-L 4 logs all the failed jobs. The exit status will be non-zero +-L 8 logs the process number of all the cron jobs From d43d5cb39b49e430da8468c96583a78ea4914ed9 Mon Sep 17 00:00:00 2001 From: "Jesse M. Jenter" Date: Tue, 3 Dec 2019 21:51:26 -0500 Subject: [PATCH 2/3] updated to try to add headers! --- reference/static/commands/osx/cron.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/reference/static/commands/osx/cron.md b/reference/static/commands/osx/cron.md index 91daef2..026f0ec 100644 --- a/reference/static/commands/osx/cron.md +++ b/reference/static/commands/osx/cron.md @@ -1,14 +1,21 @@ -cron +# cron ------------- +## INFO cron is a daemon or process which runs in the background. +## DETAILs + Specifically, it allows the user to schedule predefined processes to run in the background at a regular interval of time. -cron repeatedly checks for when the scheduled time matches the current time, and then executes it's task once that condition is met. +cron repeatedly checks for when the scheduled time matches the current time, and then executes its task once that condition is met. + +## SYNTAX cron [-f] [-l] [-n] [-L loglevel] +### Modifications + -f keeps the process in the foreground -l enables LSB compliant names for cron.d files -n adds the Fully Qualified Domain Name(FQDN) in the subject when sending email From dee940b1f004a273b79e820c809331ba4268a20c Mon Sep 17 00:00:00 2001 From: "Jesse M. Jenter" Date: Tue, 3 Dec 2019 21:55:52 -0500 Subject: [PATCH 3/3] another try at fixing spacing --- reference/static/commands/osx/cron.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/static/commands/osx/cron.md b/reference/static/commands/osx/cron.md index 026f0ec..f02d45e 100644 --- a/reference/static/commands/osx/cron.md +++ b/reference/static/commands/osx/cron.md @@ -4,7 +4,7 @@ cron is a daemon or process which runs in the background. -## DETAILs +## DETAILS Specifically, it allows the user to schedule predefined processes to run in the background at a regular interval of time. @@ -17,10 +17,17 @@ cron [-f] [-l] [-n] [-L loglevel] ### Modifications -f keeps the process in the foreground + -l enables LSB compliant names for cron.d files + -n adds the Fully Qualified Domain Name(FQDN) in the subject when sending email + -L loglevel tells cron what to log with the following modifications + -L 1 logs the start of all cron jobs + -L 2 logs the end of all cron jobs + -L 4 logs all the failed jobs. The exit status will be non-zero + -L 8 logs the process number of all the cron jobs