Una ricerchina ?

http://stackoverflow.com/questions/1...se-dup-or-dup2