- Timestamp:
- May 24, 2013, 1:37:30 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
pstamp/scripts (modified) (1 prop)
-
pstamp/scripts/pstamp_save_server_status.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509
- Property svn:mergeinfo changed
/trunk (added) merged: 35566-35570,35572-35574,35576-35581,35583-35586,35590
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/pstamp/scripts
- Property svn:mergeinfo changed
/trunk/pstamp/scripts (added) merged: 35569-35570
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/pstamp/scripts/pstamp_save_server_status.pl
r30469 r35594 12 12 use Pod::Usage qw( pod2usage ); 13 13 14 # XXX: We should get this from site.config, but that would about double15 # the execution time for this script.16 my $rundir = "/data/ippc17.0/pstamp";17 18 my $status_file = "$rundir/web/status.html";19 20 14 my $updatelink; 21 15 my $verbose; 22 16 my $save_temps; 17 my $pstamp_workdir; 23 18 24 19 GetOptions( 25 ' rundir=s' => \$rundir,20 'workdir=s' => \$pstamp_workdir, 26 21 'update-link' => \$updatelink, 27 22 'verbose' => \$verbose, … … 37 32 } 38 33 34 if (!$pstamp_workdir) { 35 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 36 $pstamp_workdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR'); 37 } 38 39 if (!$pstamp_workdir) { 40 warn("Failed to find PSTAMP_WORKDIR in the config\n"); 41 exit($PS_EXIT_CONFIG_ERROR); 42 } 43 my $status_file = "$pstamp_workdir/server_status/status.html"; 44 39 45 my ($sec, $min, $hour, $mday, $month, $year) = gmtime; 40 46 $year += 1900; 41 47 $month += 1; 42 48 43 my $dir = sprintf "$ rundir/work/server_status/%4d/%02d/%02d", $year, $month, $mday;49 my $dir = sprintf "$pstamp_workdir/server_status/%4d/%02d/%02d", $year, $month, $mday; 44 50 45 51 if (!-e $dir ) {
Note:
See TracChangeset
for help on using the changeset viewer.
