The command used for building the packages is fakeroot dpkg-buildpackage > ../build_log_r-base_i386 2> ../build_errors_r-base_i386 Didn't figure out how to do this with tee yet...