Changeset 28 for trunk/cleanup.php
- Timestamp:
- May 16, 2017, 8:55:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r27 r28 197 197 $num_try = 0; 198 198 write_log( "$me: fn_tarfile=$fn_tarfile" ); 199 while ( ! file_exists( $fn_tarfile ) &&$num_try < 3 )199 while ( ! file_exists( $fn_tarfile ) && $num_try < 3 ) 200 200 { 201 201 sleep( $secwait ); … … 873 873 // Figure out remote directory 874 874 $remoteDir = sprintf( "$work_remote/$db-%06d", $requestID ); 875 write_log( "$me: is_us3iab=$is_us3iab remoteDir=$remoteDir" );875 //write_log( "$me: is_us3iab=$is_us3iab remoteDir=$remoteDir" ); 876 876 877 877 // Get stdout, stderr, output/analysis-results.tar … … 880 880 if ( $is_us3iab == 0 ) 881 881 { 882 // For "-local", recompute remote work directory 883 $cmd = "ssh us3@$cluster.uthscsa.edu 'ls -d ~us3/lims/work/local' 2/dev/null"; 884 exec( $cmd, $output, $stat ); 885 $work_remote = $output[ 0 ]; 886 $remoteDir = sprintf( "$work_remote/$db-%06d", $requestID ); 887 write_log( "$me: -LOCAL: remoteDir=$remoteDir" ); 888 882 889 // Figure out local working directory 883 890 if ( ! is_dir( "$work/$gfacID" ) ) mkdir( "$work/$gfacID", 0770 ); … … 942 949 943 950 $lense = strlen( $stderr ); 944 if ( $lense > 1000000 0)951 if ( $lense > 1000000 ) 945 952 { // Replace exceptionally large stderr with smaller version 946 953 exec( "mv stderr stderr-orig", $output, $stat );
Note:
See TracChangeset
for help on using the changeset viewer.