Hello,
I have a tab delimited list of 311 server & account names which I want to read those 2 variables and then connect to each server and get info on that particular job account. I've tried the following:
while read server acct; do
printf "********$server\t $acct***********\n"
ssh $server "grep $acct /etc/passwd"
done < srvr_acct.lst
But this code bailed on me after making the first connection. Seems like this would be a simple fix, but it's Monday and I am not seeing it.
Input file is in the format:
server1<tab>job account1
server2<tab>job account2
...
Can anyone help?
Thanks!