IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35915


Ignore:
Timestamp:
Aug 8, 2013, 11:07:17 AM (13 years ago)
Author:
bills
Message:

Include the amount of free space in the postage stamp sever working directory on the
server status page

Location:
tags/ipp-20130712/pstamp/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/pstamp/scripts/pstamp_save_server_status.pl

    r35570 r35915  
    6161    $year, $month, $mday, $hour, $min, $sec;
    6262
    63 my $command = "pstamp_server_status > $file";
     63my $command = "pstamp_server_status --workdir $pstamp_workdir > $file";
     64#my $command = "pstamp_server_status > $file";
    6465my  ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6566    run(command => $command, verbose => $verbose);
  • tags/ipp-20130712/pstamp/scripts/pstamp_server_status

    r35914 r35915  
    162162    foreach my $line (@lines) {
    163163        next unless $line =~ /data/;
    164         # if (scalar @lines == 2) {
    165         if (1) {
    166             my ($total, $used, $free, $percent, $part) = split " ", $line;
    167             print "<br><b>Working Directory:</b> $percent free: $free out of $total total<br>\n";
    168         } else {
    169             print "<br>\n";
    170             print "unexpected output from df:\n$df_output\n";
    171         }
     164        my ($total, $used, $free, $percent, $part) = split " ", $line;
     165        print "<br><b>Server Working Directory:</b>&nbsp;&nbsp;$percent full. $free free out of $total total.<br>\n";
    172166    }
    173167
Note: See TracChangeset for help on using the changeset viewer.