};
print "### Running $jid (", $job->attr('Subject'), ") on $mach ###\n";
$ping //= ping_machine($mach);
- my $s, $msg;
+ my ($s, $msg);
if (!$ping) {
($s, $msg) = ('NOPING', 'Does not ping');
} else {
# Most actions have to be logged by the caller
sub log($$$$;$) {
my ($queue, $mach, $jid, $stat, $msg) = @_;
- my $fh = $queue->{'LogFH'} //= new IO::File '>>', $queue->{'Name'} . '/log' or die "Cannot open log: $!";
+ my $fh = $queue->{'LogFH'} //= new IO::File $queue->{'Name'} . '/log', '>>' or die "Cannot open log: $!";
my $m = join(" ", POSIX::strftime("%Y-%m-%d %H:%M:%S", localtime), $mach, $jid, $stat);
$m .= " $msg" if defined $msg;
print $fh "$m\n";