at 命令求助

at 命令求助

下面这个脚本在运行时间及类型输入时,敲回车键,使用缺省值( 03:00和Weekly ),并传入at命令。

# vartest
echo "what time do u wish to start the payroll [03:00]:"
read TIME
echo "process to start at ${TIME:=03:00} OK"
echo "Is it a monthly or weekly run [Weekly]:"
read RUN_TYPE
echo "Run type is ${RUN_TYPE:=Weekly}"
at -f  $RUN_TYPE $TIME

执行这个脚本报错:

Cannot open input file Weekly: No such file or directory

请斑竹帮忙看下

谢谢      
复制内容到剪贴板
代码:
[color=blue]-(user@host:tty)-(tmp)-
[3023 0] $ [/color]at -f no_such_file 12:00
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
[color=red]Cannot open input file no_such_file: No such file or directory[/color]
[color=blue]-(user@host:tty)-(tmp)-
[3023 1] $ [/color]ls no_such_file
[color=red]ls: no_such_file: No such file or directory[/color]
[color=blue]-(user@host:tty)-(tmp)-
[3023 1] $ [/color]
      
not a good question