// returns the right value of "Parent"
dansguardian -s | awk '{print $1}'
//returns the right value of "DansGuardian"
dansguardian -s | awk '{print $2}'
//returns the right value of "pid:65273"
dansguardian -s | awk '{print $3}'
but as soon as I put these commands in a bash script ...no matter if I use print $1 or print $2 or
print $3 ..
it will ALWAYS return the value "Parent" ..no clue why ..here is my code ...
var=(`dansguardian -s`' | awk {print $2}')
echo $var
var2=(`dansguardian -s`' | awk {print $3}')
echo $var2
Its stuck stupid on "Parent" ..never changes ..for whatever reason ..any suggestions or tips are appreciated ..thanks
dansguardian -s | awk '{print $1}'
//returns the right value of "DansGuardian"
dansguardian -s | awk '{print $2}'
//returns the right value of "pid:65273"
dansguardian -s | awk '{print $3}'
but as soon as I put these commands in a bash script ...no matter if I use print $1 or print $2 or
print $3 ..
it will ALWAYS return the value "Parent" ..no clue why ..here is my code ...
var=(`dansguardian -s`' | awk {print $2}')
echo $var
var2=(`dansguardian -s`' | awk {print $3}')
echo $var2
Its stuck stupid on "Parent" ..never changes ..for whatever reason ..any suggestions or tips are appreciated ..thanks