system("/script/upload.py @ARGV | tee temp.tee"); my $output = `cat temp.tee`; # not really, did a read() instead