From: Meena Valliappan Date: 2012-03-22T16:36:13+09:00 Subject: Re: SSH hangs for a particular command in SSH.exec!(cmd) botp wrote in post #1052757: > On Thu, Mar 22, 2012 at 3:12 PM, Meena Valliappan > wrote: >> output = ssh.exec!(/opt/wcsadmin.sh start) > > the command to be execed should be in string format, so you' ll have > to enclose it in quotes.. > > kind regards -botp Hi Botp, Thanks for your quick reply. I missed to add the same while posting it(it is a Typo). i am using the command with quotes only as below: Net::SSH.start(host, username, :password => password) do |ssh| puts 'before exit' output = ssh.exec!('/opt/wcsadmin.sh start') puts 'Executed command' But still facing the issue. Please help me. Thanks, Meena -- Posted via http://www.ruby-forum.com/.