相关疑难解决方法(0)

如何在 cfengine3 中使用命令的输出

我想列出目录内容并在其他地方使用结果:

bundle agent test
{

   commands:
      "ls /tmp/test/";

    reports:
    ubuntu::
       "print output here for example";  
# or add it to a variable which is how I really want to use it.
 }
Run Code Online (Sandbox Code Playgroud)

configuration-management cfengine

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

标签 统计

cfengine ×1

configuration-management ×1