【问题标题】:print the output of strace command in a text file在文本文件中打印 strace 命令的输出
【发布时间】:2018-04-10 07:42:32
【问题描述】:

我需要将以下命令的结果写入文本文件,但此命令不起作用,使用 cat output.txt 时什么也不显示。 可以帮我解决问题吗?

strace -r -y -e read Program -l -o output.txt

谢谢

【问题讨论】:

  • 你尝试了什么?到目前为止你发现了什么?
  • Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地点。
  • 我找不到更多关于 /mnt 活动的信息。我尝试使用 strace -r -f -y -e trace=write ls/dev/sdb 但这不是真正的命令。

标签: linux system-calls strace


【解决方案1】:

为了将来参考,我认为这个人应该这样运行它:

strace -o outputfile.txt ./Program

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-10-08
    • 1970-01-01
    • 2014-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多