Net scp unable to parse $HOME in dest path : ruby 1.9.2

Hi!

I am facing a wired issue with net scp 1.0.4 is unable to parse $HOME in
dest path. getting below exception.

c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-scp-1.0.4/lib/net/scp.rb:385:in
await_response_state': ☺scp: $HOME/#{file[1]}/#{file[2]}: No such file or directory (RuntimeError) from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-scp-1.0.4/lib/net/scp.rb:356:inblock (3 levels) in start_command’
from
c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/channel.rb:311:in
call' from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/channel.rb:311:inprocess’
from
c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:214:in
block in preprocess' from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:214:ineach’
from
c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:214:in
preprocess' from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:197:inprocess’
from
c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:161:in
block in loop' from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:161:inloop’
from
c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:161:in
loop' from c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-ssh-2.2.1/lib/net/ssh/connection/channel.rb:269:inwait’

On 9/30/2011 1:40 AM, Rajeswar reddy Gaulla wrote:

Hi!

I am facing a wired issue with net scp 1.0.4 is unable to parse $HOME in
dest path. getting below exception.

c:/ivy/setupautomation/ruby/lib/ruby/gems/1.9.1/gems/net-scp-1.0.4/lib/net/scp.rb:385:in

is HOME defined in the environment on the OS that you are connecting
to?