Forum Discussion
Variables in an external monitor BASH script
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com