1. #!/bin/bash
    2. read -p "请输入分钟信息(00‐59):" min
    3. read -p "请输入小时信息(00‐24):" hour
    4. read -p "请输入日期信息(01‐31):" date
    5. read -p "请输入月份信息(01‐12):" month
    6. read -p "请输入星期信息(00‐06):" weak
    7. read -p "请输入计划任务需要执行的命令或脚本:" program
    8. echo "$min $hour $date $month $weak $program" >> /var/spool/cron/root