
printf("<html><head>\n");

printf("<title> Validation Job Submission </title>");
$datestring=`date`;
chop($datestring);
printf("</head><body><h1>Validation Job Submission Report</h1><br>Generated: $datestring<br>\n");
$runs=`cat runs.list`;
printf("<h2>Runs: [<font color=blue size=2>$runs</font>]\n</h2><br><hr>");
$cmd =`cat cmd.txt`;
printf("<h3>Command: <pre>$cmd </pre></h3>");
$res = `cat res.txt`;


printf("<h3>Result: <pre>$res </pre></h3>");

$jid = `grep JID res.txt | awk '{print \$2}'`;
chop($jid);

if ($jid ne "")
{
printf("<a href=\"http://cdfcaf.fnal.gov/cgi-bin/condorcaf/status/jobs_long.py?jid=${jid}&detail=low\">farmjob</a><br>\n");
}

$files = `cat files.list`;

printf("<hr><br>List of files used:<pre>$files</pre>\n");
printf("</html>");

