Changeset 43073 for branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl
- Timestamp:
- Sep 3, 2026, 1:56:50 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl
r43052 r43073 16 16 my $save_temps; 17 17 my $pstamp_workdir; 18 my $pstamp_rundir; 18 19 19 20 GetOptions( … … 32 33 } 33 34 35 my $ipprc; 36 34 37 if (!$pstamp_workdir) { 35 my$ipprc = PS::IPP::Config->new(); # IPP Configuration38 $ipprc = PS::IPP::Config->new(); # IPP Configuration 36 39 $pstamp_workdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR'); 37 40 } 38 39 41 if (!$pstamp_workdir) { 40 42 warn("Failed to find PSTAMP_WORKDIR in the config\n"); … … 42 44 } 43 45 my $status_file = "$pstamp_workdir/server_status/status.html"; 46 47 if (!$pstamp_rundir) { 48 if (not defined $ipprc) { 49 $ipprc = PS::IPP::Config->new(); # IPP Configuration 50 } 51 $pstamp_rundir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_RUNDIR'); 52 } 53 if (!$pstamp_rundir) { 54 warn("Failed to find PSTAMP_RUNDIR in the config\n"); 55 exit($PS_EXIT_CONFIG_ERROR); 56 } 44 57 45 58 my ($sec, $min, $hour, $mday, $month, $year) = gmtime; … … 61 74 $year, $month, $mday, $hour, $min, $sec; 62 75 63 my $command = "pstamp_server_status --workdir $pstamp_workdir > $file";76 my $command = "pstamp_server_status --workdir $pstamp_workdir --rundir $pstamp_rundir > $file"; 64 77 #my $command = "pstamp_server_status > $file"; 65 78 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
