Skip to content
Success

Console Output

Started by timer
Running as SYSTEM
Building in workspace /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace
[SSH] script:
PWD="/"
SW_WORKDIR="/scratch/system/bwjenkins/sw_workdir"

UP="$(/usr/bin/wget -qO - http://isce.ncsa.illinois.edu/tools/status.php?name=Scheduler)"
if [ $UP -ne "2" ]
then
        exit 0
fi

export SW_WORKDIR=$SW_WORKDIR
cd $SW_WORKDIR
mkdir -p ls-scratch-semilogplot
cd ls-scratch-semilogplot

function ptime() {
  perl <<EOT
use Time::HiRes qw/time/;
my \$start = time();
system("$@");
printf STDERR "real %e\n",(time() - \$start);
EOT
}

THISLOGIN=`hostname`
echo "hostname= $THISLOGIN"
rm -f LSTIME.txt
TIMEFORLS=`ptime ls /mnt/c/scratch 2>&1 | grep real | cut -dl -f2`
echo "YVALUE= $TIMEFORLS" > LSTIME.txt

rm -f LSHTIME.txt
TIMEFORLS=`ptime ls ~ 2>&1 | grep real | cut -dl -f2`
echo "YVALUE= $TIMEFORLS" > LSHTIME.txt

#exit
###############################
rm -f MLSTIME.txt MLSHTIME.txt

cat  >  ls_for_mom3.sh << EOF
cd $PWD
function ptime() {
  perl <<EOT
use Time::HiRes qw/time/;
my \\\$start = time();
system("\$@");
printf STDERR "real %e\n",(time() - \\\$start);
EOT
}

ptime ls /mnt/c/scratch 2>&1 | grep real | cut -dl -f2 > TIMEFORLS
echo YVALUE= > MLSTIME.txta
paste MLSTIME.txta TIMEFORLS> MLSTIME.txt

ptime  ls ~ 2>&1 | grep real | cut -dl -f2 > TIMEFORLS
echo YVALUE= >  MLSHTIME.txta
paste MLSHTIME.txta TIMEFORLS> MLSHTIME.txt
rm -f TIMEFORLS MLSHTIME.txta MLSTIME.txta
EOF

cat -n ls_for_mom3.sh
chmod +x ls_for_mom3.sh
ssh  mom3 $PWD/ls_for_mom3.sh

cat -n MLSTIME.txt
cat -n MLSHTIME.txt


[SSH] executing...
hostname= h2ologin1
     1	cd /scratch/system/bwjenkins/sw_workdir/ls-scratch-semilogplot
     2	function ptime() {
     3	  perl <<EOT
     4	use Time::HiRes qw/time/;
     5	my \$start = time();
     6	system("$@");
     7	printf STDERR "real %e\n",(time() - \$start);
     8	EOT
     9	}
    10	
    11	ptime ls /mnt/c/scratch 2>&1 | grep real | cut -dl -f2 > TIMEFORLS
    12	echo YVALUE= > MLSTIME.txta
    13	paste MLSTIME.txta TIMEFORLS> MLSTIME.txt
    14	
    15	ptime  ls ~ 2>&1 | grep real | cut -dl -f2 > TIMEFORLS
    16	echo YVALUE= >  MLSHTIME.txta
    17	paste MLSHTIME.txta TIMEFORLS> MLSHTIME.txt
    18	rm -f TIMEFORLS MLSHTIME.txta MLSTIME.txta
     1	YVALUE=	 4.216909e-03
     1	YVALUE=	 5.094051e-03

[SSH] completed
[SSH] exit-status: 0

[workspace] $ /bin/sh -xe /tmp/jenkins1653957407360301754.sh
+ scp 'BW_REMOTE:/scratch/system/bwjenkins/sw_workdir/ls-scratch-semilogplot/*TIME.txt' /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace
Recording plot data
Saving plot series data from: /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace/LSTIME.txt
Saving plot series data from: /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace/LSHTIME.txt
Saving plot series data from: /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace/MLSTIME.txt
Saving plot series data from: /var/lib/jenkins/jobs/ls-scratch-semilogplot/workspace/MLSHTIME.txt
Finished: SUCCESS