Hi, At Thu, 17 Oct 2002 14:20:44 +0900, Hyukjoon Kim wrote: > Can anyone tell me the way to get rid of the intermediate temporary file > in the IPC process? -Thanks What you want is an equivalent to `cmd1 | cmd2 | cmd3' in shell? savein = STDIN.dup begin STDIN.reopen(open("|#{cmd1}")) STDIN.reopen(open("|#{cmd2}")) system(cmd3) ensure STDIN.reopen(savein) end Or more complicated: f = open("|#{cmd1}") unless f2 = open("|-") STDIN.reopen(f) exec(cmd2) end f.close Process.waitpid fork { STDIN.reopen(f2) exec(cmd3) } -- Nobu Nakada