I want to make a simple script that will log onto all 5 servers and do "who" so I can see whos on and be able to "sendnote".
Here is my script:
#!/bin/sh
while read ServerName
do
ssh user@$ServerName "who" > $ServerName.txt
done < inputer.txt
It just hangs there and then when I press enter...
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.