GeneralCommandLine piping?

Answered

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. 

0
2 comments
new GeneralCommandLine("sh", "-c", "cmd1 | cmd2")
1

Thx, works like a charm. Could be marked as answered.

0

Please sign in to leave a comment.