将 sysdig 输出写入文件
writing sysdig output to a file
我想在我的服务器上检查我的用户命令一段时间,所以我使用 sysdig 命令和 nohup。我想将输出写入这样的文件:
# nohup sysdig -c spy_users 1>>/path/to/true 2>>/path/to/false &
但是结果没有实时写入文件。有什么想法吗?
可能正在缓冲。尝试将缓冲设置为行缓冲或完全停用它:
nohup stdbuf -oL -eL sysdig -c spy_users 1>>/path/to/true 2>>/path/to/false &
我想在我的服务器上检查我的用户命令一段时间,所以我使用 sysdig 命令和 nohup。我想将输出写入这样的文件:
# nohup sysdig -c spy_users 1>>/path/to/true 2>>/path/to/false &
但是结果没有实时写入文件。有什么想法吗?
可能正在缓冲。尝试将缓冲设置为行缓冲或完全停用它:
nohup stdbuf -oL -eL sysdig -c spy_users 1>>/path/to/true 2>>/path/to/false &