Commit 764645f7 authored by Leigh Stoller's avatar Leigh Stoller

Fix minor bug where exitval was getting lost across `date` call.

Now that I know the actual exitval, maybe I can fix the actual
problem!
parent 99a907dd
......@@ -92,10 +92,13 @@ while (1) {
print "Running at " . `date`;
if (system("$genlastlog")) {
print "Exited with status $? at " . `date`;
# Save status across the date call in print statement.
my $exitval = $?;
print "Exited with status $exitval at " . `date`;
SENDMAIL($TBOPS, "Genlastlog Failed!",
"Failed with exit value $?\n".
"Failed with exit value $exitval\n".
"Please look at the syslog entries for genlastlog!");
}
sleep(60 * 5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment