我尝试使用创建屏幕的命令创建一个可执行的 .sh 文件,如下所示:
screen -dmS ast [comand]
让我的 crontab 像这样执行它
* * * * * bash /root/my_bash.sh
但是没有执行任何操作,但是使用正常的控制台命令bash /root/my_bash.sh
它可以成功运行。
我该如何解决?
我在尝试更新我的包列表时遇到的错误。
root@wetainfotech:/# apt update
Hit:1 http://ftp.de.debian.org/debian buster InRelease
Hit:2 https://packages.sury.org/php buster InRelease
Hit:3 http://deb.debian.org/debian buster InRelease
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://deb.debian.org/debian buster-updates InRelease
Hit:7 http://repo.mysql.com/apt/debian buster InRelease
Ign:6 https://oss.oracle.com/debian unstable InRelease
Get:8 https://oss.oracle.com/debian unstable Release [2,126 B]
Get:9 https://oss.oracle.com/debian unstable Release.gpg [189 B]
Ign:9 https://oss.oracle.com/debian unstable Release.gpg
Reading package lists... Done
W: GPG error: https://oss.oracle.com/debian unstable Release: The following signatures were invalid: EXPKEYSIG 2E2BCDBCB38A8516 Oracle OSS group (Open Source Software group) <[email protected]> 1122A29AB257825F322C234E2E2BCDBCB38A8516
E: The repository 'http://oss.oracle.com/debian unstable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
任何帮助!