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. 

2 comments
Comment actions Permalink
new GeneralCommandLine("sh", "-c", "cmd1 | cmd2")
1
Comment actions Permalink

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

0

Please sign in to leave a comment.