IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2014, 2:04:21 PM (12 years ago)
Author:
bills
Message:

integrate current version from operational tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_server_status

    r35486 r36639  
    1515
    1616
    17 my ($rundir, $verbose, $save_temps);
     17my ($rundir, $workdir, $verbose, $save_temps);
    1818my $br = '<br />';
    1919
    2020GetOptions(
    2121    'rundir=s'      => \$rundir,
     22    'workdir=s'     => \$workdir,
    2223    'verbose'       => \$verbose,
    2324    'save-temps'    => \$save_temps,
     
    155156    }
    156157}
     158if ($workdir) {
     159    # get the space available in the working directory file system
     160    my $df_output = `df -h $workdir`;
     161    my @lines = split "\n", $df_output;
     162    foreach my $line (@lines) {
     163        next unless $line =~ /data/;
     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";
     166    }
     167
     168}
    157169
    158170# now run the script psstatus to check the status of running requests and finished requests
Note: See TracChangeset for help on using the changeset viewer.