From: sharmin malik Date: 2012-09-10T03:57:09+09:00 Subject: Re: Need help with my logic 7stud -- wrote in post #1075229: > server_group = [ > "DK-vk-2.domain.lan", > "DK-vh-2.domain.lan", > "DK-vm-2.domain.lan" > ] Thanks but i cant define SErver name Statically WE have quite a lot of server.. example 100*3 :300 thats list has to be populate dynamically .. only thing i have is current hostname : DK-vk-2.domain.lan then get the 2 DK-vh-2.domain.lan", DK-vm-2.domain.lan" like if current host name has vk , then the rest 2 server would be vh and vm hope that make sense -- Posted via http://www.ruby-forum.com/.