私はnode.jsが初めてで、2つのプロセスを続けて実行しようとしています。最初のプロセスのstdoutは2番目のstdinにパイプされています。次に、2 番目のプロセスの stdout を、URL 要求への応答として変数 res にパイプする必要があります。コードはこちら。他の方が書いているので、誤解があるかもしれませんが、
var sox = spawn("sox", soxArgs)
var rubberband = spawn("rubberband", rubberbandArgs)
sox.stdout.pipe(rubberband.stdin)
rubberband.stdout.pipe(res) #won't send to res anything, why?
#rubberband.stdin.pipe(res) won't send to res anything, either!
#sox.stdout.pipe(res) will work just fine
sox.stdin.write(data)
sox.stdin.end()
#the actual sox process will not execute until sox.stdin is filled with data..?
どんな助けでも大歓迎です!私はこれを調べるのに何時間も費やしました!