Hi,
you can use such script:
#!/bin/ksh
cat <<EOD |&
server1
server2
......
serverN
EOD
while read -p S
do
F=`rsh $S grep $1 /etc/passwd`
if [ ${#F} -eq 0 ]
then
echo "User $1 does not have an entry on the server $S"
else
echo "User $1 has an entry on the server $S"
fi
done
If you will give this srcipt name CheckUser call it:
$ CheckUser usernm
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.