how to find a least busy host given a hardcoded host list?
Hi,
I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh. Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.. Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine) Please help... Many thanks! |
Quote:
Otherwise, you can take a look at one of the thousands of bash scripting tutorials you can find via Google, and start there. |
All times are GMT -5. The time now is 09:50 PM. |