Forum Discussion
thaynes2016_297
Nimbostratus
Aug 11, 2017bash assign tmsh output to variable
I have an issue I hope someone has ran accross.
I am attempting to get command output assigned to a variable. which works. But on the console, the command output is returned. I don't want to the...
Jad_Tabbara__J1
Cirrostratus
Aug 11, 2017Hi Thaynes,
I tried the following code
!/bin/sh
rule="test"
//Same syntax as your script is working
getrule="$(tmsh list ltm rule ${rule})"
echo $getrule
// different syntax also working
getrule2=`tmsh list ltm rule ${rule}`
echo $getrule2Both syntax are working, so maybe the issue comes from elsewhere
Could you share all you script...
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
