11 |
|
sub getLocation; |
12 |
|
sub outputCondor; |
13 |
|
|
14 |
< |
our $db; |
14 |
> |
our $db = Mysql->connect ("cmshead", "ntuple", "osuT3User"); |
15 |
|
|
16 |
|
my %opt; |
17 |
|
Getopt::Long::Configure ("bundling"); |
112 |
|
my $queryDataset = $dataset; |
113 |
|
$queryDataset =~ s/\*/%/g; |
114 |
|
$queryDataset =~ s/(.*)/%$1%/g; |
115 |
< |
$db = Mysql->connect ("cmshead", "ntuple", "osuT3User"); |
116 |
< |
my $query = "select dataset,user,creationTime,location,nFiles,status from ntuple where dataset like '$queryDataset' order by lastUpdateTime"; |
115 |
> |
my $query = "select dataset,user,creationTime,location,nFiles,status from ntuple where dataset like '$queryDataset' and status='present' order by lastUpdateTime"; |
116 |
|
$db->selectdb ("ntuple"); |
117 |
|
$results = $db->query ($query); |
118 |
|
if ($results->numrows () == 1) |
176 |
|
my $exeName = $0; |
177 |
|
$exeName =~ s/^.*\/([^\/]*)$/$1/; |
178 |
|
|
179 |
< |
print "Usage: $exeName [OPTIONS] DATASET CONFIG DIRECTORY NJOBS\n"; |
179 |
> |
print "Usage: $exeName [OPTION]... DATASET CONFIG DIRECTORY NJOBS\n"; |
180 |
|
print "Submits CMSSW jobs to the OSU Tier 3 compute nodes using Condor.\n"; |
181 |
|
print "\n"; |
182 |
|
printf "%-29s%s\n", " -h, --help", "print this help message"; |