dup2(old, new) { return dup(old+64, new); } ... depends on an undocumented interface; your mileage may vary; guaranteed to lose in SunOS 4.1 (but you can use real dup2 there); doubtless will lose other places that have wide u.u_ofile; but amusing nonetheless. -- Steven Sargent sbs at frame.com "Frame's phone bill, my opinions."