• Post Reply Bookmark Topic Watch Topic
  • New Topic

scp need help once more(and final too,I promise)  RSS feed

 
Dave Jones
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello again,
I wrote a working code , but I think there may be a simpler way to do it.
I would like to know if it's possible to use the scp (in Java code) with Runtime, to connect to a remote server and download a file .
something like:

Something in this manner.
thanks,Dave
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dave Jones:

I would like to know if it's possible to use the scp (in Java code) with Runtime, to connect to a remote server and download a file .


There's only one way to be sure: Test it.
As for your code, if it works, that's good enough. I don't think anyone's going to argue over 3 lines.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!