MODEL=`/opt/adi/bin/adcat.py -x computer $HOST|grep Model|awk '{print $3}'` #### sub get_model { my $host = shift; ... }