PowerShell/demos/crontab
Dave Goldman b7cabd4063
Fix crontab formatting in example doc (#13712)
* Updating formatting

Fixing formatting

* Update CronTab.psm1
2020-10-02 05:54:15 -06:00
..
CronTab Fix crontab formatting in example doc (#13712) 2020-10-02 05:54:15 -06:00
crontab.ps1 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
README.md spelling fixes: demos (#2060) 2016-08-31 11:05:35 -07:00

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