Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试查看从 xsane 发送到 scanimage 的确切命令行参数。我尝试了 ltrace,但在日志中的任何地方都找不到“scanimage”。一般来说,假设您知道某些 GUI 程序是命令行专业人士的前端
如果xsane调用scanimage,你会发现scanimage通过这个脚本临时替换可执行文件:
xsane
scanimage
#!/bin/bash exec &>/tmp/trace echo "$0" "$@"
然后,
chmod +x /usr/bin/scanimage xsane cat /tmp/trace