java - How do I redirect the output of one process as an input to another process? -
this question has answer here:
i need execute command, ps -aux | awk ' /^user/ { system("pstree " $2) }'
can't execute both in 1 process execute both in separate processes , redirect output of ps -aux
process input awk process.how code this? please help.
the pipe character (|
) connects standard output of command left standard input of command right. it's doing ask.
if question related java, want official pipe class (courtesy @kajacx).
Comments
Post a Comment