Changeset 35571
- Timestamp:
- May 9, 2013, 2:02:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20130307/pstamp/scripts/pstamp_save_server_status.pl
- Property svn:mergeinfo set to (toggle deleted branches)
r35481 r35571 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 my $rundir = "/data/ippc30.1/pstamp";18 19 my $status_file = "$rundir/web/status.html";20 21 14 my $updatelink; 22 15 my $verbose; 23 16 my $save_temps; 17 my $pstamp_workdir; 24 18 25 19 GetOptions( 26 ' rundir=s' => \$rundir,20 'workdir=s' => \$pstamp_workdir, 27 21 'update-link' => \$updatelink, 28 22 'verbose' => \$verbose, … … 38 32 } 39 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 40 45 my ($sec, $min, $hour, $mday, $month, $year) = gmtime; 41 46 $year += 1900; 42 47 $month += 1; 43 48 44 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; 45 50 46 51 if (!-e $dir ) {
Note:
See TracChangeset
for help on using the changeset viewer.
