Shell script errors
Hello,
I have a script which doesn't work, and I can't get to know why. Can you help me please ? My script takes MIB values and put them in a tab. I want to take the third value, 10 times, and get an average of it. My tab returns for example : 6202 0 17384 0 Here is the script : Code:
#!/bin/bash http://upload.dinhosting.fr/o/2/O/Documents.png Can you help me debug it please ? |
tab=( $(snmpwalk .... ) )
or if that won't work see mapfile and check probably here: https://stackoverflow.com/questions/...-array-in-bash by the way you can try to use shellcheck to check your script. |
Indeed it worked. It was all about brackets. Thank you !
And thanks for shellcheck ! |
All times are GMT -5. The time now is 09:22 AM. |