Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crontab:无效选项--';1';crontab:使用错误:键入crontab-1时无法识别选项_Cron - Fatal编程技术网

Crontab:无效选项--';1';crontab:使用错误:键入crontab-1时无法识别选项

Crontab:无效选项--';1';crontab:使用错误:键入crontab-1时无法识别选项,cron,Cron,我正在尝试在我的digital ocean服务器上使用crontab。当我键入crontab-1时,它会给我这个错误 crontab: invalid option -- '1' crontab: usage error: unrecognized option usage: crontab [-u user] file crontab [ -u user ] [ -i ] { -e | -l | -r } (default operation

我正在尝试在我的digital ocean服务器上使用crontab。当我键入
crontab-1
时,它会给我这个错误

crontab: invalid option -- '1'
crontab: usage error: unrecognized option
usage:  crontab [-u user] file
        crontab [ -u user ] [ -i ] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
        -i      (prompt before deleting user's crontab)
crontab: usage error: file name must be specified for replace
usage:  crontab [-u user] file
        crontab [ -u user ] [ -i ] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
        -i      (prompt before deleting user's crontab)
当我键入
crontab-I
时,它会给我这个错误

crontab: invalid option -- '1'
crontab: usage error: unrecognized option
usage:  crontab [-u user] file
        crontab [ -u user ] [ -i ] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
        -i      (prompt before deleting user's crontab)
crontab: usage error: file name must be specified for replace
usage:  crontab [-u user] file
        crontab [ -u user ] [ -i ] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
        -i      (prompt before deleting user's crontab)

如何解决此问题?提前谢谢。

也许你想要
crontab-l
(qwerty风格键盘上
k
-键右侧的字母)?天哪!我以为那是一个“1”谢谢你