my $status=system("mailx -s \"$subject\" $address < /opt/autotree/autouser/out/chk_cal_date.out") warn "Mailer exited with error: $?" unless $status == 0