mirror of
https://github.com/yavook/kiwi-cron.git
synced 2025-04-07 08:23:01 +00:00
16 lines
442 B
Bash
Executable file
16 lines
442 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# header
|
|
echo '# crontab generated by kiwi-cron'
|
|
echo '# generation time: '"$(date)"
|
|
echo '#'
|
|
|
|
# short documentation line
|
|
printf '%-8s%-8s%-8s%-8s%-8s%s\n' \
|
|
"# min" "hour" "day" "month" "weekday" "command"
|
|
|
|
# schedules
|
|
while read -r pc_minute pc_hour pc_day pc_month pc_weekday pc_command; do
|
|
printf '%-8s%-8s%-8s%-8s%-8s%s\n' \
|
|
"${pc_minute}" "${pc_hour}" "${pc_day}" "${pc_month}" "${pc_weekday}" "${pc_command}"
|
|
done
|