Changeset 42441
- Timestamp:
- Apr 4, 2023, 8:18:25 AM (3 years ago)
- Location:
- trunk/tools/eam/rawfix.20230221/src
- Files:
-
- 1 added
- 19 edited
-
check_chip_locations.pl (modified) (9 diffs)
-
check_md5s_dateobs.pl (modified) (4 diffs)
-
fix_chip_locations.pl (modified) (7 diffs)
-
fix_chip_locations_stage2.pl (modified) (7 diffs)
-
fix_chip_locations_stage3.pl (modified) (5 diffs)
-
get_hosts_md5s.sh (modified) (1 diff)
-
get_md5s_instances.pl (modified) (1 diff)
-
get_md5s_instances_stage2.pl (modified) (1 diff)
-
rawfix.advance.pt (modified) (1 diff)
-
rawfix.ckchip.pt (modified) (2 diffs)
-
rawfix.ckchip_s3.pt (modified) (2 diffs)
-
rawfix.fixchip.pt (modified) (2 diffs)
-
rawfix.fixchip_s2.pt (modified) (2 diffs)
-
rawfix.fixchip_s3.pt (modified) (2 diffs)
-
rawfix.md5chk.pt (modified) (2 diffs)
-
rawfix.md5chk_s2.pt (modified) (2 diffs)
-
rawfix.md5sum.pt (modified) (4 diffs)
-
rawfix.md5sum_s2.pt (modified) (2 diffs)
-
rawfix.pt (modified) (1 diff)
-
task.test.pt (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/check_chip_locations.pl
r42430 r42441 16 16 # USAGE: check_chip_locations.pl --dateobs 2010/05/01 --chiplist gpc1.chips.txt --stage v0 17 17 18 my ($fulldate, $dateword, $chiplist, $stage ) = &parse_cmdopts;19 my ($neb_dbh, $gpc_dbh) = &parse_db_config ( 'nebulous.config');18 my ($fulldate, $dateword, $chiplist, $stage, $topdir) = &parse_cmdopts; 19 my ($neb_dbh, $gpc_dbh) = &parse_db_config ("$topdir/nebulous.config"); 20 20 21 21 # read the list of chip_ids: … … 27 27 28 28 # put output files in a directory defined by the night 29 mkdir $dateword;29 mkdir "$topdir/$dateword"; 30 30 31 31 # output files: … … 35 35 foreach my $chip_id (@chip_ids) { 36 36 37 my $outfile = "$dateword/$chip_id.uris.txt";38 37 my $outfh; 39 open ($outfh, ">$ outfile");38 open ($outfh, ">$topdir/$dateword/$chip_id.uris.txt"); 40 39 41 40 # get the list of chip neb paths for one chip … … 74 73 # now save the host count for this chip 75 74 my $hostfh; 76 open ($hostfh, ">$ dateword/$chip_id.hosts.txt");75 open ($hostfh, ">$topdir/$dateword/$chip_id.hosts.txt"); 77 76 78 77 # save the host count for this chip … … 121 120 my @chip_ids; 122 121 123 open(CHIPS, $chiplist) or die "cannot open file $chiplist\n";122 open(CHIPS,"$topdir/$chiplist") or die "cannot open file $chiplist\n"; 124 123 125 124 my @lines = <CHIPS>; … … 226 225 my $xattr = $values[3]; 227 226 227 if ($xattr > 1) { $Ndead ++; next; } # do not save instances on dead partitions 228 if ($xattr == 0) { $Nmain ++; } 229 if ($xattr == 1) { $Nback ++; } 230 228 231 # count the number of each host by incrementing the hash element corresponding to the hostname: 229 232 # NOTE: hostcount is global … … 231 234 232 235 if (not defined $hostfile{$hostname}) { 233 open ($hostfile{$hostname}, ">$ dateword/$hostname.inst.$stage.txt");236 open ($hostfile{$hostname}, ">$topdir/$dateword/$hostname.inst.$stage.txt"); 234 237 ## XXX deal with open failure here 235 238 } 239 236 240 my $fh = $hostfile{$hostname}; 237 241 print $fh "$instance $data_st $md5_sum\n"; 238 239 if ($xattr == 0) { $Nmain ++; }240 if ($xattr == 1) { $Nback ++; }241 if ($xattr > 1) { $Ndead ++; }242 242 } 243 243 … … 330 330 sub parse_cmdopts { 331 331 332 my ($dateobs, $chiplist, $stage );333 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, ' stage=s' => \$stage) || pod2usage(2);332 my ($dateobs, $chiplist, $stage, $topdir); 333 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, 'topdir=s' => \$topdir, 'stage=s' => \$stage) || pod2usage(2); 334 334 335 335 pod2usage( -msg => "Cannot determine target date, use --dateobs YYYY/MM/DD", -exitval => 2) unless defined $dateobs; 336 336 pod2usage( -msg => "Provide a list of chips with --chiplist", -exitval => 2) unless defined $chiplist; 337 337 pod2usage( -msg => "Define the stage (v0, v1, etc) with --stage", -exitval => 2) unless defined $stage; 338 pod2usage( -msg => "Specify the top-level output directory with --topdir", -exitval => 2) unless defined $topdir; 338 339 339 340 # check the date format (require YYYY/MM/DD and use that from 00:00:00 to 23:59:59 or take start and end?) … … 348 349 my $dateword = sprintf ("%4d%02d%02d", $date_year, $date_month, $date_day); 349 350 350 return ($fulldate, $dateword, $chiplist, $stage )351 return ($fulldate, $dateword, $chiplist, $stage, $topdir) 351 352 } 352 353 -
trunk/tools/eam/rawfix.20230221/src/check_md5s_dateobs.pl
r42415 r42441 12 12 use Getopt::Long qw( GetOptions :config auto_help auto_version ); 13 13 14 # USAGE: check_md5s_dateobs.pl --dateobs (night) 14 # USAGE: check_md5s_dateobs.pl --dateobs (night) --topdir (topdir) 15 15 16 my ($dateword ) = &parse_cmdopts;16 my ($dateword, $stage, $topdir) = &parse_cmdopts; 17 17 18 my @instlist = glob ("$ dateword/*.inst.txt");19 my @md5slist = glob ("$ dateword/*.md5s.txt");18 my @instlist = glob ("$topdir/$dateword/*.inst.$stage.txt"); 19 my @md5slist = glob ("$topdir/$dateword/*.md5s.txt"); 20 20 21 21 my $Nfail = 0; … … 25 25 # find the matching md5sum file for this host 26 26 27 my ($host) = $instfile =~ m|$dateword/([0-9a-zA-Z]*).inst. txt|;27 my ($host) = $instfile =~ m|$dateword/([0-9a-zA-Z]*).inst.$stage.txt|; 28 28 # print STDERR "host: $host\n"; 29 29 … … 100 100 sub parse_cmdopts { 101 101 102 my ($dateobs );103 GetOptions( 'dateobs=s' => \$dateobs ) || pod2usage(2);102 my ($dateobs, $stage, $topdir); 103 GetOptions( 'dateobs=s' => \$dateobs, 'topdir=s' => \$topdir, 'stage=s' => \$stage) || pod2usage(2); 104 104 105 105 pod2usage( -msg => "Cannot determine target date, use --dateobs YYYY/MM/DD", -exitval => 2) unless defined $dateobs; 106 pod2usage( -msg => "Specify the top-level output directory with --topdir", -exitval => 2) unless defined $topdir; 107 pod2usage( -msg => "Define the stage (v0, v1, etc) with --stage", -exitval => 2) unless defined $stage; 106 108 107 109 # check the date format (require YYYY/MM/DD and use that from 00:00:00 to 23:59:59 or take start and end?) … … 115 117 my $dateword = sprintf ("%4d%02d%02d", $date_year, $date_month, $date_day); 116 118 117 return ($dateword );119 return ($dateword, $stage, $topdir); 118 120 } 119 121 -
trunk/tools/eam/rawfix.20230221/src/fix_chip_locations.pl
r42430 r42441 18 18 # for each chip, target a single host? 19 19 20 my ($fulldate, $dateword, $chiplist, $stage ) = &parse_cmdopts;21 my ($neb_dbh) = &parse_db_config ( 'nebulous.config');20 my ($fulldate, $dateword, $chiplist, $stage, $topdir) = &parse_cmdopts; 21 my ($neb_dbh) = &parse_db_config ("$topdir/nebulous.config"); 22 22 23 23 # read the list of chip_ids: … … 42 42 foreach my $chip_id (@chip_ids) { 43 43 44 my $urifile = "$ dateword/$chip_id.uris.txt";45 open (FILE, "$urifile");44 my $urifile = "$topdir/$dateword/$chip_id.uris.txt"; 45 open (FILE, $urifile); 46 46 my @lines = <FILE>; 47 47 close (FILE); … … 71 71 my ($newfile, $newhost, $newxattr) = &get_new_instance ($ext_id); 72 72 unless ($newxattr == 1) { die "new instance is not at ATRC? $ext_id : $newfile : $newhost : $newxattr\n"; } 73 open (OUTFILE, ">>$ dateword/$newhost.inst.$stage.txt");73 open (OUTFILE, ">>$topdir/$dateword/$newhost.inst.$stage.txt"); 74 74 print OUTFILE "$newfile $datast $md5sum\n"; 75 75 close (OUTFILE); … … 85 85 my ($newfile, $newhost, $newxattr) = &get_new_instance ($ext_id); 86 86 unless ($newxattr == 0) { die "new instance is not at ITC? $ext_id : $newfile : $newhost : $newxattr\n"; } 87 open (OUTFILE, ">>$ dateword/$newhost.inst.$stage.txt");87 open (OUTFILE, ">>$topdir/$dateword/$newhost.inst.$stage.txt"); 88 88 print OUTFILE "$newfile $datast $md5sum\n"; 89 89 close (OUTFILE); … … 170 170 my @chip_ids; 171 171 172 open(CHIPS, $chiplist) or die "cannot open file $chiplist\n";172 open(CHIPS,"$topdir/$chiplist") or die "cannot open file $chiplist\n"; 173 173 174 174 my @lines = <CHIPS>; … … 189 189 sub parse_cmdopts { 190 190 191 my ($dateobs, $chiplist, $stage );192 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, ' stage=s' => \$stage) || pod2usage(2);191 my ($dateobs, $chiplist, $stage, $topdir); 192 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, 'topdir=s' => \$topdir, 'stage=s' => \$stage) || pod2usage(2); 193 193 194 194 pod2usage( -msg => "Cannot determine target date, use --dateobs YYYY/MM/DD", -exitval => 2) unless defined $dateobs; 195 195 pod2usage( -msg => "Provide a list of chips with --chiplist", -exitval => 2) unless defined $chiplist; 196 196 pod2usage( -msg => "Define the stage (v0, v1, etc) with --stage", -exitval => 2) unless defined $stage; 197 pod2usage( -msg => "Specify the top-level output directory with --topdir", -exitval => 2) unless defined $topdir; 197 198 198 199 # check the date format (require YYYY/MM/DD and use that from 00:00:00 to 23:59:59 or take start and end?) … … 207 208 my $dateword = sprintf ("%4d%02d%02d", $date_year, $date_month, $date_day); 208 209 209 return ($fulldate, $dateword, $chiplist, $stage );210 return ($fulldate, $dateword, $chiplist, $stage, $topdir); 210 211 } 211 212 -
trunk/tools/eam/rawfix.20230221/src/fix_chip_locations_stage2.pl
r42430 r42441 18 18 # for each chip, target a single host? 19 19 20 my ($fulldate, $dateword, $chiplist, $stage ) = &parse_cmdopts;21 my ($neb_dbh) = &parse_db_config ( 'nebulous.config');20 my ($fulldate, $dateword, $chiplist, $stage, $topdir) = &parse_cmdopts; 21 my ($neb_dbh) = &parse_db_config ("$topdir/nebulous.config"); 22 22 23 23 # read the list of chip_ids: … … 42 42 foreach my $chip_id (@chip_ids) { 43 43 44 my $urifile = "$ dateword/$chip_id.uris.txt";45 open (FILE, "$urifile");44 my $urifile = "$topdir/$dateword/$chip_id.uris.txt"; 45 open (FILE, $urifile); 46 46 my @lines = <FILE>; 47 47 close (FILE); … … 75 75 my ($newfile, $newhost, $newxattr) = &get_new_instance ($ext_id); 76 76 unless ($newxattr == 1) { die "new instance is not at ATRC? $ext_id : $newfile : $newhost : $newxattr\n"; } 77 open (OUTFILE, ">>$ dateword/$newhost.inst.$stage.txt");77 open (OUTFILE, ">>$topdir/$dateword/$newhost.inst.$stage.txt"); 78 78 print OUTFILE "$newfile $datast $md5sum\n"; 79 79 close (OUTFILE); … … 89 89 my ($newfile, $newhost, $newxattr) = &get_new_instance ($ext_id); 90 90 unless ($newxattr == 0) { die "new instance is not at ITC? $ext_id : $newfile : $newhost : $newxattr\n"; } 91 open (OUTFILE, ">>$ dateword/$newhost.inst.txt");91 open (OUTFILE, ">>$topdir/$dateword/$newhost.inst.$stage.txt"); 92 92 print OUTFILE "$newfile $datast $md5sum\n"; 93 93 close (OUTFILE); … … 170 170 my @chip_ids; 171 171 172 open(CHIPS, $chiplist) or die "cannot open file $chiplist\n";172 open(CHIPS,"$topdir/$chiplist") or die "cannot open file $chiplist\n"; 173 173 174 174 my @lines = <CHIPS>; … … 189 189 sub parse_cmdopts { 190 190 191 my ($dateobs, $chiplist, $stage );192 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, ' stage=s' => \$stage) || pod2usage(2);191 my ($dateobs, $chiplist, $stage, $topdir); 192 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, 'topdir=s' => \$topdir, 'stage=s' => \$stage) || pod2usage(2); 193 193 194 194 pod2usage( -msg => "Cannot determine target date, use --dateobs YYYY/MM/DD", -exitval => 2) unless defined $dateobs; 195 195 pod2usage( -msg => "Provide a list of chips with --chiplist", -exitval => 2) unless defined $chiplist; 196 196 pod2usage( -msg => "Define the stage (v0, v1, etc) with --stage", -exitval => 2) unless defined $stage; 197 pod2usage( -msg => "Specify the top-level output directory with --topdir", -exitval => 2) unless defined $topdir; 197 198 198 199 # check the date format (require YYYY/MM/DD and use that from 00:00:00 to 23:59:59 or take start and end?) … … 207 208 my $dateword = sprintf ("%4d%02d%02d", $date_year, $date_month, $date_day); 208 209 209 return ($fulldate, $dateword, $chiplist, $stage );210 return ($fulldate, $dateword, $chiplist, $stage, $topdir); 210 211 } 211 212 -
trunk/tools/eam/rawfix.20230221/src/fix_chip_locations_stage3.pl
r42416 r42441 14 14 # USAGE: fix_chip_locations_stage3.pl --dateobs (night) --chiplist (file) 15 15 16 my ($fulldate, $dateword, $chiplist ) = &parse_cmdopts;17 my ($neb_dbh) = &parse_db_config ( 'nebulous.config');16 my ($fulldate, $dateword, $chiplist, $topdir) = &parse_cmdopts; 17 my ($neb_dbh) = &parse_db_config ("$topdir/nebulous.config"); 18 18 19 19 # read the list of chip_ids: … … 35 35 foreach my $chip_id (@chip_ids) { 36 36 37 my $urifile = "$ dateword/$chip_id.uris.txt";38 open (FILE, "$urifile");37 my $urifile = "$topdir/$dateword/$chip_id.uris.txt"; 38 open (FILE, $urifile); 39 39 my @lines = <FILE>; 40 40 close (FILE); … … 175 175 my @chip_ids; 176 176 177 open(CHIPS, $chiplist) or die "cannot open file $chiplist\n";177 open(CHIPS,"$topdir/$chiplist") or die "cannot open file $chiplist\n"; 178 178 179 179 my @lines = <CHIPS>; … … 195 195 sub parse_cmdopts { 196 196 197 my ($dateobs, $chiplist );198 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist ) || pod2usage(2);197 my ($dateobs, $chiplist, $topdir); 198 GetOptions( 'dateobs=s' => \$dateobs, 'chiplist=s' => \$chiplist, 'topdir=s' => \$topdir) || pod2usage(2); 199 199 200 200 pod2usage( -msg => "Cannot determine target date, use --dateobs YYYY/MM/DD", -exitval => 2) unless defined $dateobs; 201 201 pod2usage( -msg => "Provide a list of chips with --chiplist", -exitval => 2) unless defined $chiplist; 202 pod2usage( -msg => "Specify the top-level output directory with --topdir", -exitval => 2) unless defined $topdir; 202 203 203 204 # check the date format (require YYYY/MM/DD and use that from 00:00:00 to 23:59:59 or take start and end?) … … 212 213 my $dateword = sprintf ("%4d%02d%02d", $date_year, $date_month, $date_day); 213 214 214 return ($fulldate, $dateword, $chiplist );215 return ($fulldate, $dateword, $chiplist, $topdir); 215 216 } 216 217 -
trunk/tools/eam/rawfix.20230221/src/get_hosts_md5s.sh
r42430 r42441 1 1 #!/bin/csh 2 2 3 if ($#argv != 2) then4 echo "USAGE: get_hosts_md5s.sh ( dateobs) (stage)"3 if ($#argv != 3) then 4 echo "USAGE: get_hosts_md5s.sh (topdir) (dateobs) (stage)" 5 5 exit 2 6 6 endif 7 7 8 set dirname = $1 9 set stage = $2 8 set topdir = $1 9 set dateobs = $2 10 set stage = $3 10 11 11 if (! -d $dirname) then 12 echo "ERROR: missing dateobs directory $dirname" 12 if (! -d $topdir) then 13 echo "ERROR: missing top-level directory $topdir" 14 exit 3 15 endif 16 17 if (! -d $topdir/$dateobs) then 18 echo "ERROR: missing dateobs directory $topdir/$dateobs" 13 19 exit 3 14 20 endif 15 21 16 22 # report both the dateobs and the hostnames 17 ls $ dirname/*.inst.$stage.txt | awk -v dateobs=$dirname -F/ '(NR == 1){print "dateobs md5host"}{print dateobs, $2}' | sed s/.inst.$stage.txt//23 ls $topdir/$dateobs/*.inst.$stage.txt | awk -v dateobs=$dateobs -F/ '(NR == 1){print "dateobs md5host"}{print dateobs, $NF}' | sed s/.inst.$stage.txt// 18 24 exit 0 -
trunk/tools/eam/rawfix.20230221/src/get_md5s_instances.pl
r42430 r42441 43 43 my $filename = $instance; 44 44 $filename =~ s|file://||; 45 46 # check for the existence of the file first: 47 unless (-e $filename) { 48 print OUTFILE "$instance $data_state $md5sum_tru XXX\n"; 49 next; 50 } 45 51 46 52 my $line; -
trunk/tools/eam/rawfix.20230221/src/get_md5s_instances_stage2.pl
r42430 r42441 53 53 my $filename = $instance; 54 54 $filename =~ s|file://||; 55 56 # check for the existence of the file first: 57 unless (-e $filename) { 58 print OUTFILE "$instance $data_state $md5sum_tru XXX\n"; 59 next; 60 } 55 61 56 62 my $line; -
trunk/tools/eam/rawfix.20230221/src/rawfix.advance.pt
r42440 r42441 7 7 periods -exec 10 8 8 periods -timeout 30 9 host local 9 10 10 11 stdout $LOGDIR/advance.log -
trunk/tools/eam/rawfix.20230221/src/rawfix.ckchip.pt
r42440 r42441 55 55 56 56 task nights.ckchip.run 57 58 57 periods -poll $RPOLL 59 58 periods -exec $REXEC 60 59 periods -timeout 60 60 host anyhost 61 61 npending 1 62 62 … … 88 88 sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY 89 89 90 command check_chip_locations.pl--dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v090 command $mypath/check_chip_locations.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v0 91 91 end 92 92 -
trunk/tools/eam/rawfix.20230221/src/rawfix.ckchip_s3.pt
r42440 r42441 55 55 56 56 task nights.ckchip_s3.run 57 58 57 periods -poll $RPOLL 59 58 periods -exec $REXEC 60 59 periods -timeout 60 60 host anyhost 61 61 npending 1 62 62 … … 86 86 sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY 87 87 88 command check_chip_locations.pl--dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v188 command $mypath/check_chip_locations.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v1 89 89 end 90 90 -
trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt
r42440 r42441 54 54 55 55 task nights.fixchip.run 56 57 56 periods -poll $RPOLL 58 57 periods -exec $REXEC 59 58 periods -timeout 1800 59 host anyhost 60 60 npending 1 61 61 … … 84 84 sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY 85 85 86 command fix_chip_locations.pl--dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v086 command $mypath/fix_chip_locations.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v0 87 87 end 88 88 -
trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip_s2.pt
r42440 r42441 54 54 55 55 task nights.fixchip_s2.run 56 57 56 periods -poll $RPOLL 58 57 periods -exec $REXEC 59 58 periods -timeout 1800 59 host anyhost 60 60 npending 1 61 61 … … 85 85 stderr $mypath/$DATEOBS/log.fixchip_s2.runhosts.v0 86 86 87 command fix_chip_locations_stage2.pl--dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v087 command $mypath/fix_chip_locations_stage2.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage v0 88 88 end 89 89 -
trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip_s3.pt
r42440 r42441 54 54 55 55 task nights.fixchip_s3.run 56 57 56 periods -poll $RPOLL 58 57 periods -exec $REXEC 59 58 periods -timeout 1800 59 host anyhost 60 60 npending 1 61 61 … … 85 85 stderr $mypath/$DATEOBS/log.fixchip_s3.runhosts.v0 86 86 87 command fix_chip_locations_stage3.pl--dateobs $FULLDATE --chiplist gpc1.chips.txt87 command $mypath/fix_chip_locations_stage3.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt 88 88 end 89 89 -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5chk.pt
r42440 r42441 53 53 54 54 task nights.md5chk.run 55 55 host anyhost 56 56 periods -poll $RPOLL 57 57 periods -exec $REXEC … … 84 84 stderr $mypath/$DATEOBS/log.md5chk.v0 85 85 86 command check_md5s_dateobs.pl --dateobs $FULLDATE86 command $mypath/check_md5s_dateobs.pl --topdir $mypath --dateobs $FULLDATE --stage v0 87 87 end 88 88 -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5chk_s2.pt
r42440 r42441 53 53 54 54 task nights.md5chk_s2.run 55 56 55 periods -poll $RPOLL 57 56 periods -exec $REXEC 58 57 periods -timeout 60 58 host anyhost 59 59 npending 1 60 60 … … 84 84 stderr $mypath/$DATEOBS/log.md5chk_s2.v0 85 85 86 command check_md5s_dateobs.pl --dateobs $FULLDATE86 command $mypath/check_md5s_dateobs.pl --topdir $mypath --dateobs $FULLDATE --stage v0 87 87 end 88 88 -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt
r42440 r42441 55 55 # output: md5host.book 56 56 task nights.md5sum.loadhosts 57 58 57 periods -poll $RPOLL 59 58 periods -exec $REXEC 60 59 periods -timeout 60 60 host local 61 61 npending 1 62 # note: the tasks which return their results via stdout 63 # seem to fail if run remotely. 62 64 63 65 stdout $LOGDIR/md5sum.loadhosts.stdout.log … … 86 88 exec echo "# start runhosts $mydate" >> $tmpline 87 89 88 command get_hosts_md5s.sh $DATEOBS v090 command $mypath/get_hosts_md5s.sh $mypath $DATEOBS v0 89 91 end 90 92 … … 92 94 # convert the stdout 'queue' to entries in a book 93 95 # fields in the table will become words in the page 96 queueprint stdout 94 97 queuesize stdout -var Nhosts 95 98 queue2book -raw-columns -key dateobs:md5host -uniq -setword pantaskState INIT stdout md5host.book 96 99 book setword md5sum.book $options:0 NHOST {$Nhosts - 1} 97 100 book setword md5sum.book $options:0 NDONE 0 101 book list 102 book listbook md5sum.book 98 103 # use the queuesize (Nhosts) to track how many jobs are done / to be done 99 104 end … … 117 122 end 118 123 124 # runs on the hosts identified by get_hosts_md5s.sh 119 125 # output: md5host.book 120 126 task nights.md5sum.runhosts -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum_s2.pt
r42440 r42441 55 55 # output: md5host_s2.book 56 56 task nights.md5sum_s2.loadhosts 57 58 57 periods -poll $RPOLL 59 58 periods -exec $REXEC 60 59 periods -timeout 60 60 host local 61 61 npending 1 62 62 … … 86 86 exec echo "# start runhosts $mydate" >> $tmpline 87 87 88 command get_hosts_md5s.sh $DATEOBS v088 command $mypath/get_hosts_md5s.sh $mypath $DATEOBS v0 89 89 end 90 90 -
trunk/tools/eam/rawfix.20230221/src/rawfix.pt
r42440 r42441 32 32 input rawfix.md5chk_s2.pt 33 33 input rawfix.fixchip_s3.pt 34 input rawfix.ckchip_s3.pt 34 35 35 36 # no need to run rsync if we use the b-node working directory:
Note:
See TracChangeset
for help on using the changeset viewer.
