I have a Rails Application from which I will call one Ruby Definition in the controller, like this.
ssh root@host "uptime" >> /tmp/output
When I doing this, only the /tmp/output is created but not the content. When I running the same from simple Ruby script its working fine.
my controller definition
def chefclient1
`ssh root@host "uptime" >> /tmp/output`
@time = Time.now
end
my view
= link_to('Start uptime', host_chefclient1_path)