Changeset 1866 for palm/trunk/SCRIPTS/subjob
- Timestamp:
- Apr 15, 2016 6:50:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/subjob
r1842 r1866 23 23 # Current revisions: 24 24 # ------------------ 25 # 25 # adjusted for lcocean 26 26 # 27 27 # Former revisions: … … 231 231 (hexagon*) local_address=129.177.20.113; local_host=lcxe6;; 232 232 (nobel*) local_address=150.183.5.101; local_host=ibms;; 233 (ocean) local_address="ocean"; local_host=lcocean;; 233 234 (orkan) local_address=130.75.105.3; local_host=lcmuk;; 234 235 (ostria) local_address=130.75.105.106; local_host=lcmuk;; … … 238 239 (quanero) local_address=130.75.105.107; local_host=lcmuk;; 239 240 (rte*) local_address=133.5.185.60; local_host=lcrte;; 241 (schultzl-Latitude-E6540) local_address="schultzl-Latitude-E6540"; local_host=lcsch;; 240 242 (shiokaze-lx) local_address=134.106.74.123; local_host=lcfor;; 241 243 (sisu-login*) local_address=86.50.166.21; local_host=lccrayf;; 242 244 (solano) local_address=130.75.105.110; local_host=lcmuk;; 243 245 (sugoka*) local_address=172.31.120.1; local_host=lckyut;; 246 (tc*) local_address="ocean"; local_host=lcocean;; 244 247 (t2a*) local_address=10.1.6.165; local_host=lctit;; 245 248 (urban*) local_address=147.46.30.151 local_host=lcsb;; … … 384 387 (lckyuh) remote_address=133.5.4.33; submcom=/usr/bin/pjsub;; 385 388 (lckyut) remote_address=133.5.4.37; submcom=/usr/bin/pjsub;; 389 (lcocean) remote_address="ocean"; submcom=qsub;; 386 390 (lcsb) remote_address=147.46.30.151; submcom=/usr/torque/bin/qsub;; 387 391 (lctit) queue=S; remote_address=10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;; … … 1165 1169 %%END%% 1166 1170 1171 elif [[ $remote_host = lcocean ]] 1172 then 1173 cat > $job_to_send << %%END%% 1174 #!/bin/bash 1175 #$ -cwd 1176 #$ -V 1177 #$ -N $job_name 1178 #$ -pe orte $numprocs 1179 #$ -o $remote_dayfile 1180 #$ -j y 1181 #$ -R y 1182 $init_cmds 1183 $module_calls 1184 1185 %%END%% 1186 1167 1187 elif [[ $remote_host = nech ]] 1168 1188 then … … 1244 1264 echo "trap '" >> $job_to_send 1245 1265 echo "set +vx" >> $job_to_send 1246 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lcbullhh || $remote_host = lccrayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 ]]1266 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lcbullhh || $remote_host = lccrayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 || $remote_host = lcocean ]] 1247 1267 then 1248 1268 if [[ $remote_host = ibmh ]] … … 1395 1415 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1396 1416 echo "%%END%%" >> $job_to_send 1417 1418 elif [[ $remote_host = lcocean ]] 1419 then 1420 echo "cat > scpjob.${identifier}.tmp << %%END%%" >> $job_to_send 1421 echo "#!/bin/bash" >> $job_to_send 1422 echo "SGEPREFIX -S /bin/bash" >> $job_to_send 1423 echo "SGEPREFIX -N transfer_$job_name" >> $job_to_send 1424 echo "SGEPREFIX -cwd" >> $job_to_send 1425 echo "SGEPREFIX -j y" >> $job_to_send 1426 echo "SGEPREFIX -o ${local_host}_${job_name}_scpjob_$identifier" >> $job_to_send 1427 echo " " >> $job_to_send 1428 echo "set -x" >> $job_to_send 1429 echo "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:' >> $job_to_send 1430 echo "export PATH=\$PATH:\$PALM_BIN" >> $job_to_send 1431 echo "" >> $job_to_send 1432 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1433 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1434 echo "rm -f scpjob.${identifier}" >> $job_to_send 1435 echo "%%END%%" >> $job_to_send 1436 echo "sed -e 's/SGEPREFIX/#$/g' scpjob.${identifier}.tmp > scpjob.${identifier}" >> $job_to_send 1437 echo "rm -f scpjob.${identifier}.tmp" >> $job_to_send 1397 1438 1398 1439 elif [[ $remote_host = lcflow ]] … … 1484 1525 echo "scp $PORTOPT scpjob.$identifier ${remote_username}@${remote_address}:job_queue" >> $job_to_send 1485 1526 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_address} \"cd job_queue; $submcom scpjob.$identifier; rm scpjob.$identifier\" " >> $job_to_send 1486 elif [[ $remote_host = lcflow ]]1527 elif [[ $remote_host = lcflow || $remote_host = lcocean ]] 1487 1528 then 1488 1529 echo "mv scpjob.$identifier $job_catalog" >> $job_to_send
Note: See TracChangeset
for help on using the changeset viewer.