lipinggm / tlb

Automatically exported from code.google.com/p/tlb
0 stars 0 forks source link

fix shell scripts to make em work on Mac OS X #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is the gist:

./run_balanced.sh shows this error "../recipe.sh: line 67: seq: command not 
found". This looks like a OSX thing.
Replaced line 54 in recipe.sh with ' for((i=1; i <= $TOTAL_PARTITIONS; i++)); 
do 'That did the trick.

--------------------

Also, I had to fix the 'load_status' function in server.sh to make it work on 
OSX. The fix was for ps comman, replaced 'f' with 'u' as 'f' option is not 
available on Mac.

ps u -p $pid | grep tlb-all | grep -q java

---------------------

as reported by Bhavin on the mailing list.

Original issue reported on code.google.com by singh.janmejay on 9 Feb 2011 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by singh.janmejay on 9 Feb 2011 at 8:23

GoogleCodeExporter commented 9 years ago
sample_projects fixed in: 18ef0e1f5060d792e49b2a1a3dbd9bf7e1721058
tlb fixed in: 89921387c7074f35ba0eda2902571cb2bd570291

sample projects is upstream, tlb is not, will merge once module 
refactoring(issue#56) is done.

Original comment by singh.janmejay on 13 Feb 2011 at 3:51