GeneralCommandLine piping?
已回答
Is it possible to pipe commands by using GeneralCommandLine class?
Right now, when I'm trying
new GeneralCommandLine("cmd1", "|", "cmd2")
it results into 'cmd "|" cmd2', meaning that pipe sign is being quoted, so it doesn't work.
请先登录再写评论。
new GeneralCommandLine("sh", "-c", "cmd1 | cmd2")Thx, works like a charm. Could be marked as answered.