Changeset 31 for trunk/cleanup.php


Ignore:
Timestamp:
Oct 13, 2017, 9:37:16 PM (7 years ago)
Author:
gegorbet
Message:

global-fit and jetstream,stampede2 mods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r28 r31  
    225225   if ( file_exists( $fn_stdout  ) ) $stdout   = file_get_contents( $fn_stdout  );
    226226   if ( file_exists( $fn_tarfile ) ) $tarfile  = file_get_contents( $fn_tarfile );
     227write_log( "$me(0):  length contents stderr,stdout,tarfile -- "
     228 . strlen($stderr) . "," . strlen($stdout) . "," . strlen($tarfile) );
    227229   // If stdout,stderr have no content, retry after delay
    228230   if ( strlen( $stdout ) == 0  ||  strlen( $stderr ) == 0 )
     
    870872   global $status;
    871873   $is_us3iab  = preg_match( "/us3iab/", $cluster );
     874   $is_jetstr  = preg_match( "/jetstream/", $cluster );
    872875
    873876   // Figure out remote directory
     
    881884   {
    882885      // For "-local", recompute remote work directory
    883       $cmd = "ssh us3@$cluster.uthscsa.edu 'ls -d ~us3/lims/work/local' 2/dev/null";
     886      $clushost = "$cluster.uthscsa.edu";
     887      $lworkdir = "~us3/lims/work/local";
     888      if ( $is_jetstr )
     889      {
     890         $clushost = "js-157-184.jetstream-cloud.org";
     891         $lworkdir = "/N/us3_cluster/work/local";
     892      }
     893      $cmd         = "ssh us3@$clushost 'ls -d $lworkdir' 2/dev/null";
    884894      exec( $cmd, $output, $stat );
    885895      $work_remote = $output[ 0 ];
     
    891901      $pwd = chdir( "$work/$gfacID" );
    892902
    893       $cmd = "scp us3@$cluster.uthscsa.edu:$remoteDir/output/analysis-results.tar . 2>&1";
     903      $cmd = "scp us3@$clushost:$remoteDir/output/analysis-results.tar . 2>&1";
    894904
    895905      exec( $cmd, $output, $stat );
     
    897907         write_log( "$me: Bad exec:\n$cmd\n" . implode( "\n", $output ) );
    898908
    899       $cmd = "scp us3@$cluster.uthscsa.edu:$remoteDir/stdout . 2>&1";
     909      $cmd = "scp us3@$clushost:$remoteDir/stdout . 2>&1";
    900910
    901911      exec( $cmd, $output, $stat );
     
    910920      }
    911921
    912       $cmd = "scp us3@$cluster.uthscsa.edu:$remoteDir/stderr . 2>&1";
     922      $cmd = "scp us3@$clushost:$remoteDir/stderr . 2>&1";
    913923
    914924      exec( $cmd, $output, $stat );
Note: See TracChangeset for help on using the changeset viewer.