#!/bin/bash echo "/usr/bin/cpan -t $1 2>&1 >/root/reports/$1.log" | script /root/reports/$1.txt