在扭曲中,getProcessOutput 方法可以通过使用getProcessOutupt('ps', 'aux')获取 'ps' shell 命令输出并返回延迟。
我的问题是如何在 getProcessOutput 中运行类似“ps aux | grep 'some keyword' | awk '{...}'”的命令。例如getProcessOutput("ps aux | grep 'some keyword' | awk '{...}'")。
任何建议,将不胜感激。
在扭曲中,getProcessOutput 方法可以通过使用getProcessOutupt('ps', 'aux')获取 'ps' shell 命令输出并返回延迟。
我的问题是如何在 getProcessOutput 中运行类似“ps aux | grep 'some keyword' | awk '{...}'”的命令。例如getProcessOutput("ps aux | grep 'some keyword' | awk '{...}'")。
任何建议,将不胜感激。