Changes between Version 19 and Version 20 of JBSsandbox/PlasticSlices


Ignore:
Timestamp:
04/22/14 13:42:33 (7 years ago)
Author:
Josh Smift
Comment:

Be smarter about finding the first and last log.

Legend:

Unmodified
Added
Removed
Modified
  • JBSsandbox/PlasticSlices

    v19 v20  
    382382
    383383{{{
    384 firstlog=$(ls -1 ~/tmp/plastic-slices/$subdir/logs/bbn-ig-ps104-b | head -1 | sed -e 's/zoing-\(.*\).log/\1/')
    385 lastlog=$(ls -1 ~/tmp/plastic-slices/$subdir/logs/bbn-ig-ps104-b | tail -1 | sed -e 's/zoing-\(.*\).log/\1/')
     384firstlog=$(find ~/tmp/plastic-slices/$subdir/logs/*-b -name '*log' -print | sed -e 's/.*zoing-\(.*\).log/\1/' | sort | head -1)
     385lastlog=$(find ~/tmp/plastic-slices/$subdir/logs/*-b -name '*log' -print | sed -e 's/.*zoing-\(.*\).log/\1/' | sort | tail -1)
     386echo $firstlog $lastlog
    386387time python ~/tarvek/generate-graphs.py --progress --mainconfig=~/tmp/plastic-slices/$subdir/slices.json --pairmap=~/tmp/plastic-slices/$subdir/pairmap.json --rootdir=~/tmp/plastic-slices/$subdir --starttime=$firstlog --endtime=$lastlog
    387388}}}