Changeset 41 for trunk/cleanup.php


Ignore:
Timestamp:
May 10, 2019, 1:45:46 PM (6 years ago)
Author:
gegorbet
Message:

gridctl mods for uslims.uleth.ca demeler3 cluster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r40 r41  
    738738   $headers  = "From: $org_name Admin<$admin_email>"     . "\n";
    739739   $headers .= "Cc: $org_name Admin<$admin_email>"       . "\n";
     740   $headers .= "CC: $org_name Admin<alexsav.science@gmail.com>"       . "\n";
     741   $headers .= "CC: $org_name Admin<gegorbet@gmail.com>"       . "\n";
    740742
    741743   // Set the reply address
     
    878880   global $dbhost;
    879881   global $status;
     882   
    880883   $is_us3iab  = preg_match( "/us3iab/", $cluster );
    881884   $is_jetstr  = preg_match( "/jetstream/", $cluster );
     885   $is_demeler3 = preg_match( "/demeler3/", $cluster );
     886
    882887   $limshost   = $dbhost;
    883888   $stderr     = '';
     
    921926         $lworkdir = "/N/us3_cluster/work/local";
    922927      }
     928     
     929      if ( $is_demeler3 )
     930      {
     931         $clushost = "demeler3.uleth.ca";
     932   $lworkdir = "/home/us3/work";
     933      }
     934
    923935      $cmd         = "ssh us3@$clushost 'ls -d $lworkdir' 2>/dev/null";
    924936      exec( $cmd, $output, $stat );
Note: See TracChangeset for help on using the changeset viewer.