我想列出目录内容并在其他地方使用结果:
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)