ffd39b2853
- Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'ForEach-Object' (alias is '%' or 'foreach') - Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'Where-Object' (alias is '?' or 'where') - Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'Select-Object' (alias is 'select') - Fix PSScriptAnalyzer warnings of type PSPossibleIncorrectComparisonWithNull. Essentially, $null has to be on the left-hand side when using it for comparison. - A Test in ParameterBinding.Tests.ps1 needed adapting as this test used to rely on the wrong null comparison - Replace a subset of tests of kind '($object -eq $null) | Should Be $true' with '$object | Should Be $null' |
||
---|---|---|
.. | ||
CronTab | ||
crontab.ps1 | ||
README.md |
CronTab demo
This demo shows examining, creating, and removing cron jobs via crontab.
Output of Get-CronJob is a strongly typed object with properties like DayOfWeek or Command. Remove-CronJob prompts before removing the job unless you specify -Force.
Tab completion of -UserName is supported, e.g.
Get-CronJob -u
NYI: no way to run crontab with sudo if necessary NYI: ignoring shell variables or comments NYI: New-CronJob -Description "..." (save in comments" NYI: @reboot,@daily,@hourly,etc