my $logfile = "commandpost.log"; open (LOG, "< $logfile") or die "Cannot read $logfile: $!";