I tried to get command output in a command but I could't get it. If I run manually, It return normal result in screen.
[root@mymachine ~]# dnsdist -e "topQueries()" 1 Rest 0 100.0%
I tried with dnsdist -e 'topQueries() 2>&1 1> /tmp/abc. But /tmp/abc still was empty.
I don't think screen command can resolve it.
Does anyone have any recommendations?
Addition information:
1 Rest 0 100.0%
is the result from topQueries(). '-e' mean execute a command in dnsdist. It works look like we access mysql then we call a sql statement.
examplecommand > /tmp/abc 2>&1