Merge branch 'release-2.140.101'
[feisty_meow.git] / infobase / examples / os_related / example_registry_ops.sh
1 #!/bin/sh
2 # an example of using the reg.exe tool on windows to find some things in
3 # the registry.
4 # this happens to look in the registry for PuTTY keys for a set of named
5 # displays.
6
7 declare ip_array=(zorba-1 zorba-2 zorba-3 zorba-4 zorba-5)
8
9 for i in ${ip_array[*]}; do 
10   target=${i}
11   echo "display is $target"
12   reg query 'HKCU\Software\SimonTatham\PuTTY\SshHostKeys' /v "rsa2@22:$target"
13 done
14
15