in reply to Redirecting output
close STDERR; close STDOUT; open STDERR, '>', "$outpath/arbol.log"; open STDOUT, ">&STDERR"; [download]