PowerShell/demos/crontab
Steve Lee 4bc52d2358 Use consistent '(c)' for copyright symbol (#5210)
- Remove the year about copyright
- Fix casing of `All rights reserved`
- Replace Unicode characters representing single quote with a single quote
2017-10-26 14:12:19 -07:00
..
CronTab Use consistent '(c)' for copyright symbol (#5210) 2017-10-26 14:12:19 -07:00
crontab.ps1 Updated script to tag demo jobs and clean up afterwards; removed line that removes all jobs from start (#1783) 2016-08-12 17:41:56 -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