Skip to content

Commit

Permalink
Merge pull request #47 from theohbrothers/docs/readme-fix-command-lin…
Browse files Browse the repository at this point in the history
…es-in-scheduled-task-or-cron-job-section

Docs (readme): Fix command lines in Scheduled Task or Cron job section
  • Loading branch information
leojonathanoh authored Jul 25, 2021
2 parents b1a7463 + 798df85 commit d569ee7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ Scheduled Task Command line:

```powershell
# Powershell
Powershell 'Import-Module Log-Rotate; Log-Rotate -Config C:\configs\Log-Rotate\Log-Rotate.conf -State C:\var\Log-Rotate\Log-Rotate.status -Verbose' >> C:\logs\Log-Rotate.log
powershell -Command 'Import-Module Log-Rotate; Log-Rotate -Config C:\configs\Log-Rotate\Log-Rotate.conf -State C:\var\Log-Rotate\Log-Rotate.status -Verbose' >> C:\logs\Log-Rotate.log
# pwsh
pwsh 'Import-Module Log-Rotate; Log-Rotate -Config C:\configs\Log-Rotate\Log-Rotate.conf -State C:\var\Log-Rotate\Log-Rotate.status -Verbose' >> C:\logs\Log-Rotate.log
pwsh -Command 'Import-Module Log-Rotate; Log-Rotate -Config C:\configs\Log-Rotate\Log-Rotate.conf -State C:\var\Log-Rotate\Log-Rotate.status -Verbose' >> C:\logs\Log-Rotate.log
```

#### *nix cron
Expand All @@ -158,15 +158,15 @@ Decide on a state file `/var/lib/Log-Rotate/Log-Rotate.status`.
Run the command with `-WhatIf` to simulate the rotation, making sure everything is working.

```powershell
pwsh 'Import-Module Log-Rotate; Log-Rotate -Config /etc/Log-Rotate.conf -State /var/lib/Log-Rotate/Log-Rotate.status -Verbose -WhatIf'
pwsh -Command 'Import-Module Log-Rotate; Log-Rotate -Config /etc/Log-Rotate.conf -State /var/lib/Log-Rotate/Log-Rotate.status -Verbose -WhatIf'
```

Decide on a log file `/var/log/Log-Rotate.log`.

Cron command line:

```powershell
pwsh 'Import-Module Log-Rotate; Log-Rotate -Config /etc/Log-Rotate.conf -State /var/lib/Log-Rotate/Log-Rotate.status -Verbose' >> /var/log/Log-Rotate.log
pwsh -Command 'Import-Module Log-Rotate; Log-Rotate -Config /etc/Log-Rotate.conf -State /var/lib/Log-Rotate/Log-Rotate.status -Verbose' >> /var/log/Log-Rotate.log
```

## Configuration
Expand Down

0 comments on commit d569ee7

Please sign in to comment.