-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistorygram
executable file
·9 lines (9 loc) · 1.3 KB
/
historygram
1
2
3
4
5
6
7
8
9
#!/bin/bash
if [ $# -ne 1 ]; then
JOB_HISTORY_CMD=$(condor_history `whoami` | head -n2 | tail -n1 | cut -d'.' -f1)
else
JOB_HISTORY_CMD=$(condor_history $1 | head -n2 | tail -n1 | cut -d'.' -f1)
fi
#condor_history -format '%s\n' LastRemoteHost $JOB_HISTORY_CMD | cut -d@ -f2 | rev | cut -d'.' -f1,2 | rev | sed -e 's/qgp[0-9][0-9]\|lqcd[0-9][0-9]\|neuron-[0-9][0-9]\|nano[0-9][0-9]/duke.edu/' | distribution --color --char=pb
condor_history -format '%s\n' LastRemoteHost $JOB_HISTORY_CMD | cut -d@ -f2 | rev | cut -d'.' -f1,2 | rev | sed -e 's/qgp[0-9][0-9]\|lqcd[0-9][0-9]\|neutrino-[0-9][0-9]\|neuron-[0-9][0-9]\|neutron-[0-9][0-9]\|nano[0-9][0-9]/duke.edu/' | sed -e 's/compute-[0-9][0-9]-[0-9][0-9]\.local[0-9]\|compute-[0-9]-[0-9][0-9].nysu[0-9]/uconn.edu/' | sed -e 's/nodo[0-9][0-9]/cinvestav.mx/' | sed -e 's/compute-[0-9]-[0-9].local/vt.edu/' | sed -e 's/node[0-9][0-9][0-9].local/unesp.br/' | sed -e 's/compute-[0-9]-[0-9][0-9].nys1\|compute-[0-9]-[0-9].nys1\|compute-[0-9]-[0-9][0-9].local/cornell.edu/' | distribution --color --char=pb
#condor_history -format '%s\n' LastRemoteHost $(condor_history lincolnb | head -n2 | tail -n1 | cut -d'.' -f1) | cut -d@ -f2 | rev | cut -d'.' -f1,2 | rev | sed -e 's/qgp[0-9][0-9]\|lqcd[0-9][0-9]\|neuron-[0-9][0-9]\|nano[0-9][0-9]/duke.edu/' | distribution --color --char=pb