gpt4 book ai didi

c - 使用 shark 启动带有参数和配置文件的进程

转载 作者:太空宇宙 更新时间:2023-11-04 04:57:28 26 4
gpt4 key购买 nike

我需要使用 shark 对 (cli) 应用程序进行采样并像这样将参数传递给它:

shortest-path <input-ref-littleendian|diff -u - output-ref

我如何用 shark 做到这一点? Shark 假定我需要传递给启动的 cli 应用程序的参数是针对 shark 本身的,而不是过程。

最佳答案

那不是“程序的参数”,那是一个 shell 管道。您可能需要使用括号来明确事情发生的顺序,例如也许像

$ shark ( shortest-path < input-ref-littleendian | diff -u - output-ref )

我无权访问 shark,因此无法验证这一点。

关于c - 使用 shark 启动带有参数和配置文件的进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4450394/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com