Forum Discussion
Hamish
Mar 26, 2014Cirrocumulus
Well... if you want $PRI to contain the output of the tmsh command, then you really need back ticks around it (Although they could already be there and just missing from the post (Eaten by the post gremlins when the text was formatted).
I also don't see anywhere you define $GREP in the script (or $LOGGER). (Is that just missing the code above that defines it?). Also the script interpreter is missing? Possible issues there (e.g. the magic number line
!/bin/bash
The formatting is a bit wonky sorry... Hard to tell (Can you re-post the whole script using 4 spaces in front of every line so the website shows it as pre formatted code?
H