Changeset 31 for trunk/cleanup.php
- Timestamp:
- Oct 13, 2017, 9:37:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r28 r31 225 225 if ( file_exists( $fn_stdout ) ) $stdout = file_get_contents( $fn_stdout ); 226 226 if ( file_exists( $fn_tarfile ) ) $tarfile = file_get_contents( $fn_tarfile ); 227 write_log( "$me(0): length contents stderr,stdout,tarfile -- " 228 . strlen($stderr) . "," . strlen($stdout) . "," . strlen($tarfile) ); 227 229 // If stdout,stderr have no content, retry after delay 228 230 if ( strlen( $stdout ) == 0 || strlen( $stderr ) == 0 ) … … 870 872 global $status; 871 873 $is_us3iab = preg_match( "/us3iab/", $cluster ); 874 $is_jetstr = preg_match( "/jetstream/", $cluster ); 872 875 873 876 // Figure out remote directory … … 881 884 { 882 885 // 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"; 884 894 exec( $cmd, $output, $stat ); 885 895 $work_remote = $output[ 0 ]; … … 891 901 $pwd = chdir( "$work/$gfacID" ); 892 902 893 $cmd = "scp us3@$clus ter.uthscsa.edu:$remoteDir/output/analysis-results.tar . 2>&1";903 $cmd = "scp us3@$clushost:$remoteDir/output/analysis-results.tar . 2>&1"; 894 904 895 905 exec( $cmd, $output, $stat ); … … 897 907 write_log( "$me: Bad exec:\n$cmd\n" . implode( "\n", $output ) ); 898 908 899 $cmd = "scp us3@$clus ter.uthscsa.edu:$remoteDir/stdout . 2>&1";909 $cmd = "scp us3@$clushost:$remoteDir/stdout . 2>&1"; 900 910 901 911 exec( $cmd, $output, $stat ); … … 910 920 } 911 921 912 $cmd = "scp us3@$clus ter.uthscsa.edu:$remoteDir/stderr . 2>&1";922 $cmd = "scp us3@$clushost:$remoteDir/stderr . 2>&1"; 913 923 914 924 exec( $cmd, $output, $stat );
Note:
See TracChangeset
for help on using the changeset viewer.