This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有这个脚本...
#!/bin/sh
list=`/usr/bin/yasql user/xxxx@dev --batch` <<EOT
select h.hostname from host h, server s where s.id = h.id and s.server_type = 'DNS';
EOT
for i in $list
do
echo $i
done