小编You*_*eed的帖子

Linux 中的前台任务调度类似于 Windows 的 Task Scheduler

我在 Windows 上有一个批处理应用程序,我每天在午夜运行。最近,我将其转换为 Linux 机器上的 Linux shell 脚本,并希望每天午夜类似地运行它。我的要求如下:-

  • 对于在前台运行的 shell 脚本 - 这是为了让我看到正在运行的进程的输出并在它失败时纠正/修复问题。
  • 与 Windows 任务调度程序的工作方式类似,我想要一个可以运行的脚本列表,并且可以启用/禁用这些列表。
  • (可选)理想情况下,可以通过编程方式修改 Task Scheduler 等效项。这将允许我根据已运行任务的结果禁用/启用任务。

这是可行的吗?我已经看到下面的链接,但它们不包含我的用例所需的所有标准。如果下面的链接之一是正确的方法,那么示例会非常有帮助。

bash scripts automation schedule

3
推荐指数
2
解决办法
463
查看次数

rst2man:配置:错误:需要 rst2man

我正在尝试使用以下步骤从远程( https://git.kernel.org/pub/scm/bluetooth/bluez.git )安装最新版本的 BlueZ :-

./bootstrap
./configure --disable-dependency-tracking
make
Run Code Online (Sandbox Code Playgroud)

但是,配置过程失败并出现以下情况:-

checking systemd user unit dir... /usr/lib/systemd/user

checking for rst2man... no
checking for rst2man.py... no
configure: error: rst2man is required
make: *** No targets specified and no makefile found. Stop.
Run Code Online (Sandbox Code Playgroud)

在网上快速搜索后,我发现为了满足这个要求,我必须安装 python-docutils,但这对我来说总是失败,如下所示

$ sudo apt -y install python-docutils

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-docutils is not available, but is referred to by another package.
This may mean that the package is missing, has …
Run Code Online (Sandbox Code Playgroud)

python apt

1
推荐指数
1
解决办法
5417
查看次数

标签 统计

apt ×1

automation ×1

bash ×1

python ×1

schedule ×1

scripts ×1