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': :slight_smile: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:in
`block (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:in
`process'
聽聽聽聽聽聽聽聽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:in
`each'
聽聽聽聽聽聽聽聽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:in
`process'
聽聽聽聽聽聽聽聽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: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: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:in
`wait'

路路路

--
Posted via http://www.ruby-forum.com/.

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

路路路

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