#!/bin/bash #if [ -z "$BASH_VERSION" ]; then exec bash "$0" "$@"; exit; fi passwd=$1 while read ip do ./key.sh ${passwd} ${ip} done < ip_list